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