Changeset 4624 for trunk/src/peldr
- Timestamp:
- Nov 19, 2000, 10:27:40 AM (25 years ago)
- Location:
- trunk/src/peldr
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/peldr/makefile
r4501 r4624 1 # $Id: makefile,v 1.1 7 2000-10-20 11:45:25 sandervlExp $1 # $Id: makefile,v 1.18 2000-11-19 08:57:04 bird Exp $ 2 2 3 3 # 4 4 # Odin32 API 5 5 # 6 # pe.exe makefile6 # pe.exe and pec.exe makefile 7 7 # 8 8 9 # Tell that we're producing an executable10 EXETARGET = 111 9 12 # Directory macros. 13 PDWIN32_INCLUDE = ..\..\include 14 PDWIN32_LIB = ..\..\lib 15 PDWIN32_BIN = ..\..\$(OBJDIR) 16 PDWIN32_TOOLS = ..\..\tools\bin 10 # 11 # Compiler, tools, and interference rules. 12 # 13 !include ../../include/pdwin32.mk 17 14 18 15 19 # Compiler, tools, and interference rules. 20 !include $(PDWIN32_INCLUDE)/pdwin32.mk 16 # 17 # Generic rules which forwards to the real makefiles. 18 # The all rule has to stand alone, else make will make all the rules if it 19 # is invoked without any target. 20 # 21 _all: all 22 23 all clean: # add all common rules here 24 $(MAKE_CMD) -f pe.mak $@ 25 $(MAKE_CMD) -f pec.mak $@ 21 26 22 27 23 # Flag overloads and local macros. 24 CLEANEXTRAS = $(PDWIN32_BIN)\$(TARGET).exe 28 # don't have to make deps more than once. 29 dep: 30 $(MAKE_CMD) -f pe.mak $@ 25 31 26 32 27 # Object files. All objects should be prefixed with $(OBJDIR)! 28 OBJS = $(OBJDIR)\pe.obj 29 OBJS1= $(OBJDIR)\pec.obj 30 31 # Target name - name of the dll without extention and path. 32 TARGET = pe 33 TARGET1 = pec 34 35 # All rule - build objs, target dll, copies dll to bin and makes libs. 36 all: $(OBJDIR) \ 37 $(OBJDIR)\$(TARGET).exe \ 38 $(PDWIN32_BIN)\$(TARGET).exe \ 39 $(OBJDIR)\$(TARGET1).exe \ 40 $(PDWIN32_BIN)\$(TARGET1).exe 41 42 43 # Lib rule - dummy rule. 33 # dummy rule. 44 34 lib: 45 35 46 36 47 # Exe rule - builds the target exe.48 $(OBJDIR)\$(TARGET).exe: $(OBJS) $(OBJDIR)\$(TARGET).lrf 49 $(LD2) $(LD2FLAGS_ODINCRT) @$(OBJDIR)\$(TARGET).lrf 37 # 38 # Do not includes the common rules. 39 # 50 40 51 $(OBJDIR)\$(TARGET1).exe: $(OBJS1) $(OBJDIR)\$(TARGET1).lrf52 $(LD2) $(LD2FLAGS_ODINCRT) @$(OBJDIR)\$(TARGET1).lrf53 54 $(PDWIN32_BIN)\$(TARGET1).exe: $(OBJDIR)\$(TARGET1).exe55 cd $(OBJDIR)56 $(MAPSYM) $(TARGET1).map57 cd ..\..58 $(CP) $(OBJDIR)\$(TARGET1).sym $(PDWIN32_BIN)59 $(CP) $** $@60 -$(CP) $** $(@D)..\..\$(@F)61 -$(CP) $(OBJDIR)\$(TARGET1).sym $(@D)..\..62 63 $(OBJDIR)\pec.obj: pe.cpp64 $(CC) -C $(CXXFLAGS) -DCOMMAND_LINE_VERSION -Fo$@ pe.cpp65 66 # Linker file - creates the parameter file passed on to the linker.67 $(OBJDIR)\$(TARGET).lrf: makefile68 @echo Creating file <<$@69 /OUT:$(OBJDIR)\$(TARGET).exe70 /MAP:$(OBJDIR)\$(TARGET).map71 /PMTYPE:pm72 /STACK:0x10000073 /NOBASE74 $(OBJS)75 os2386.lib76 <<keep77 78 79 $(OBJDIR)\$(TARGET1).lrf: makefile80 @echo Creating file <<$@81 /OUT:$(OBJDIR)\$(TARGET1).exe82 /MAP:$(OBJDIR)\$(TARGET1).map83 /PMTYPE:vio84 /STACK:0x10000085 /NOBASE86 $(OBJS1)87 os2386.lib88 <<keep89 90 # Dep rule - makes depenencies for C, C++ and Asm files.91 dep:92 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \93 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h94 95 96 # Includes the common rules.97 !include $(PDWIN32_INCLUDE)/pdwin32.post98
Note:
See TracChangeset
for help on using the changeset viewer.