[10301] | 1 | # $Id: odin32.post.mk,v 1.10 2003-10-26 01:47:50 bird Exp $
|
---|
[4718] | 2 |
|
---|
| 3 | #
|
---|
| 4 | # Odin32 API
|
---|
| 5 | #
|
---|
| 6 | # Common dll makefile rules (must be included at the last line of the makefile)
|
---|
| 7 | #
|
---|
| 8 | # If ORGTARGET is defined it is used to generate the importlibrary.
|
---|
| 9 | #
|
---|
| 10 | # Define NOTEXPDEF to remove the $(TARGET).lib and $(TARGET)exp.def rules.
|
---|
| 11 | # Define EXETARGET to make an executable. (This also applies to pdwin32.mk.)
|
---|
| 12 | # Define LOCALCLEAN if only the local directory is to be clean.
|
---|
| 13 | # Define CLEAN2 to invoke a second clean rule named 'clean2'.
|
---|
| 14 | # Define NOCLEAN to exclude the clean rule. (Remember to make your own!)
|
---|
| 15 | #
|
---|
| 16 | # New style: (define NEW_STYLE)
|
---|
| 17 | # Define NO_ALL_RULE to not make default all rule.
|
---|
| 18 | # Define NO_LIB_RULE to not make default lib rule.
|
---|
| 19 | # Define NO_DLL_RULE to not make default dll rule.
|
---|
| 20 | # Define NO_EXE_RULE to not make default exe rule.
|
---|
| 21 | # Define NO_LNKFILE_RULE to not make default link-file rule.
|
---|
| 22 | # Define NO_DEP_RULE to not make dependencies rule.
|
---|
| 23 | # Define NO_CLEAN_RULE to not make clean rule (same as NOCLEAN - use this!).
|
---|
| 24 | #
|
---|
| 25 |
|
---|
[6422] | 26 |
|
---|
| 27 | #
|
---|
| 28 | # Altern configuration if we're making the custom build object library.
|
---|
| 29 | #
|
---|
[10301] | 30 | !ifndef NO_CUSTOMBUILD
|
---|
[6422] | 31 | !if "$(CUSTOMBUILD)" == "1"
|
---|
[10301] | 32 | !if "$(EXETARGET)" == ""
|
---|
| 33 | !ifdef LIBS
|
---|
| 34 | !ifdef NOPEHDR
|
---|
[6422] | 35 | OBJS = $(OBJS:initterm.obj=dummy.obj)
|
---|
[10301] | 36 | !else
|
---|
| 37 | OBJS = $(OBJS:initterm.obj=dummy.obj) \
|
---|
| 38 | $(OBJDIR)\pe_$(ORGTARGET).obj
|
---|
[6422] | 39 | !endif
|
---|
[10301] | 40 | !endif
|
---|
| 41 | !endif
|
---|
| 42 | !endif
|
---|
| 43 | !endif
|
---|
[6422] | 44 |
|
---|
| 45 | #
|
---|
[4718] | 46 | # Include compiler spesific post rule file.
|
---|
[6422] | 47 | #
|
---|
[6909] | 48 | !include $(ODIN32_INCLUDE)/odin32.post.$(MKFILE).mk
|
---|
[4718] | 49 |
|
---|
[6422] | 50 |
|
---|
| 51 | #
|
---|
| 52 | # dummy.obj helper rule.
|
---|
| 53 | #
|
---|
| 54 | $(OBJDIR)\dummy.obj: dummy.c
|
---|
| 55 |
|
---|
| 56 | dummy.c:
|
---|
| 57 | echo Creating dummy file: <<$@
|
---|
| 58 | /* dummy file */
|
---|
| 59 | <<KEEP
|
---|
| 60 |
|
---|
[6452] | 61 |
|
---|
| 62 | #
|
---|
| 63 | # Dummy .lib dependencies.
|
---|
| 64 | #
|
---|
| 65 | OS2386.LIB \
|
---|
| 66 | mmpm2.lib \
|
---|
| 67 | so32dll.lib \
|
---|
| 68 | tcp32dll.lib \
|
---|
| 69 | rexx.lib \
|
---|
[8046] | 70 | netapi32.lib \
|
---|
| 71 | netapi.lib \
|
---|
[6452] | 72 | $(SOMLIB) \
|
---|
| 73 | $(RTLLIB) \
|
---|
| 74 | $(RTLLIB_O) \
|
---|
| 75 | $(RTLLIB_NRE) \
|
---|
[7999] | 76 | $(LIB_DEMANGLE) \
|
---|
[6452] | 77 | :
|
---|
| 78 |
|
---|
| 79 |
|
---|
| 80 | #
|
---|
| 81 | # Nothing rule used for makefile debugging.
|
---|
| 82 | #
|
---|
| 83 | nothing:
|
---|
| 84 | @echo Did nothing with makefile $(MAKEDIR)\$(MAKEFILE)
|
---|
[9876] | 85 | !if "$(SUBDIRS)" != ""
|
---|
| 86 | $(DODIRS) "$(SUBDIRS)" $(MAKE_CMD) $@
|
---|
| 87 | !endif
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 | #
|
---|
| 91 | # Common: Global clean rule.
|
---|
| 92 | # @todo Make separate define for this recursive delete.
|
---|
| 93 | #
|
---|
| 94 | cleanall:
|
---|
| 95 | $(RM) -Rf bin .depend
|
---|
| 96 | !if "$(SUBDIRS)" != ""
|
---|
| 97 | $(DODIRS) "$(SUBDIRS)" $(MAKE_CMD) NODEP=1 $@
|
---|
| 98 | !endif
|
---|
| 99 |
|
---|