source: trunk/include/odin32.post.mk@ 10366

Last change on this file since 10366 was 10301, checked in by bird, 22 years ago

Synced over pe_*.obj custombuild changes.

File size: 2.1 KB
Line 
1# $Id: odin32.post.mk,v 1.10 2003-10-26 01:47:50 bird Exp $
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
26
27#
28# Altern configuration if we're making the custom build object library.
29#
30!ifndef NO_CUSTOMBUILD
31!if "$(CUSTOMBUILD)" == "1"
32!if "$(EXETARGET)" == ""
33!ifdef LIBS
34!ifdef NOPEHDR
35OBJS = $(OBJS:initterm.obj=dummy.obj)
36!else
37OBJS = $(OBJS:initterm.obj=dummy.obj) \
38$(OBJDIR)\pe_$(ORGTARGET).obj
39!endif
40!endif
41!endif
42!endif
43!endif
44
45#
46# Include compiler spesific post rule file.
47#
48!include $(ODIN32_INCLUDE)/odin32.post.$(MKFILE).mk
49
50
51#
52# dummy.obj helper rule.
53#
54$(OBJDIR)\dummy.obj: dummy.c
55
56dummy.c:
57 echo Creating dummy file: <<$@
58/* dummy file */
59<<KEEP
60
61
62#
63# Dummy .lib dependencies.
64#
65OS2386.LIB \
66mmpm2.lib \
67so32dll.lib \
68tcp32dll.lib \
69rexx.lib \
70netapi32.lib \
71netapi.lib \
72$(SOMLIB) \
73$(RTLLIB) \
74$(RTLLIB_O) \
75$(RTLLIB_NRE) \
76$(LIB_DEMANGLE) \
77 :
78
79
80#
81# Nothing rule used for makefile debugging.
82#
83nothing:
84 @echo Did nothing with makefile $(MAKEDIR)\$(MAKEFILE)
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#
94cleanall:
95 $(RM) -Rf bin .depend
96!if "$(SUBDIRS)" != ""
97 $(DODIRS) "$(SUBDIRS)" $(MAKE_CMD) NODEP=1 $@
98!endif
99
Note: See TracBrowser for help on using the repository browser.