| 1 | # $Id: makefile.icc,v 1.13 2000-10-05 07:27:57 bird Exp $
|
|---|
| 2 |
|
|---|
| 3 | #
|
|---|
| 4 | # PD-Win32 API
|
|---|
| 5 | #
|
|---|
| 6 | # Tools common library, ICC version.
|
|---|
| 7 | #
|
|---|
| 8 | #
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 | # Directory macros.
|
|---|
| 12 | PDWIN32_TCOMMON = ..\common
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | # Defines for the pdwin32.post and pdwin32.mk
|
|---|
| 16 | EXETARGET = 1
|
|---|
| 17 | LOCALCLEAN = 1
|
|---|
| 18 | CLEANEXTRAS = commonicc.lib
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | # Compiler, tools, and interference rules.
|
|---|
| 22 | !include ..\..\include\pdwin32.mk
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | # Addjust common definitions...
|
|---|
| 26 | CFLAGS = $(CFLAGS) -Wall+ppt-ppc-inl-cnv-gnr-vft-
|
|---|
| 27 | CXXFLAGS = $(CXXFLAGS) -Wall+ppt-ppc-inl-cnv-gnr-vft- -Gx-
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | #
|
|---|
| 31 | # Object files.
|
|---|
| 32 | # Important! No space after the filenames! The space will be converted
|
|---|
| 33 | # to a '+' operator on the ILIB command line. NMAKE adds a space
|
|---|
| 34 | # for each new line. This space is converted to a '+' which
|
|---|
| 35 | # prefixes each filenames.
|
|---|
| 36 | #
|
|---|
| 37 | OBJS =\
|
|---|
| 38 | $(OBJDIR)\kFilePe.obj\
|
|---|
| 39 | $(OBJDIR)\kFileDef.obj\
|
|---|
| 40 | $(OBJDIR)\kFileLx.obj\
|
|---|
| 41 | $(OBJDIR)\kFileFormatBase.obj\
|
|---|
| 42 | $(OBJDIR)\kFile.obj
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | # All rule.
|
|---|
| 46 | all: $(OBJDIR) \
|
|---|
| 47 | commonicc.lib
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 | # CommonICC
|
|---|
| 51 | commonicc.lib: $(OBJDIR)\commonicc.lib
|
|---|
| 52 | $(CP) $** $@
|
|---|
| 53 |
|
|---|
| 54 | $(OBJDIR)\commonicc.lib: $(OBJS)
|
|---|
| 55 | $(RM) $@
|
|---|
| 56 | $(ILIB)/quiet /nobackup $@ $(OBJS: = +), NUL;
|
|---|
| 57 |
|
|---|
| 58 | # kDump
|
|---|
| 59 | kDump.exe $(PDWIN32_TOOLS)\kDump.exe: $(OBJDIR)\kDump.exe
|
|---|
| 60 | $(CP) $** $@
|
|---|
| 61 |
|
|---|
| 62 | $(OBJDIR)\kDump.exe: commonicc.lib $(OBJDIR)\kDump.obj
|
|---|
| 63 | $(LD) $(LDFLAGS) -Fe$@ $** $(RTLLIB) OS2386.LIB
|
|---|
| 64 |
|
|---|
| 65 | # kDef2Wat.exe
|
|---|
| 66 | kDef2Wat.exe $(PDWIN32_TOOLS)\kDef2Wat.exe: $(OBJDIR)\kDef2Wat.exe
|
|---|
| 67 | $(CP) $** $@
|
|---|
| 68 |
|
|---|
| 69 | $(OBJDIR)\kDef2Wat.exe: commonicc.lib $(OBJDIR)\kDef2Wat.obj
|
|---|
| 70 | $(LD) $(LDFLAGS) -Fe$@ $** $(RTLLIB) OS2386.LIB
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | # Dependent rule. Forward to main makefile.
|
|---|
| 75 | dep:
|
|---|
| 76 | @$(MAKE) /nologo -f makefile NODEP=1 dep
|
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 | # Includes the common rules.
|
|---|
| 80 | !include $(PDWIN32_INCLUDE)/pdwin32.post
|
|---|
| 81 |
|
|---|