Changeset 3031 for trunk/src/peldr
- Timestamp:
- Mar 7, 2000, 12:39:20 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/peldr/makefile
r2712 r3031 1 # $Id: makefile,v 1.1 4 2000-02-09 23:47:01bird Exp $1 # $Id: makefile,v 1.15 2000-03-06 23:38:55 bird Exp $ 2 2 3 3 # … … 7 7 # 8 8 9 # Tell that we're producing an executable 10 EXETARGET = 1 11 12 # Directory macros. 9 13 PDWIN32_INCLUDE = ..\..\include 10 PDWIN32_LIB = ..\..\lib11 PDWIN32_BIN = ..\..\bin12 PDWIN32_TOOLS = ..\..\tools\bin14 PDWIN32_LIB = ..\..\lib 15 PDWIN32_BIN = ..\..\$(OBJDIR) 16 PDWIN32_TOOLS = ..\..\tools\bin 13 17 18 19 # Compiler, tools, and interference rules. 14 20 !include $(PDWIN32_INCLUDE)/pdwin32.mk 15 21 16 CFLAGS = $(CFLAGS) /Ge+ -I$(PDWIN32_INCLUDE) -Gn- 17 CXXFLAGS = $(CXXFLAGS) /Ge+ -I$(PDWIN32_INCLUDE) -Gn- 18 LDFLAGS = $(LDFLAGS_ODINCRT) /Ge+ /B"/pmtype:pm /stack:0x100000 /NOBASE /Map" \ 19 os2386.lib 22 23 # Flag overloads and local macros. 24 CLEANEXTRAS = $(PDWIN32_BIN)\$(TARGET).exe 20 25 21 26 27 # Object files. All objects should be prefixed with $(OBJDIR)! 28 OBJS = $(OBJDIR)\pe.obj 29 30 31 # Target name - name of the dll without extention and path. 22 32 TARGET = pe 23 33 24 OBJS = pe.obj25 34 26 all: $(TARGET).exe 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 27 39 28 40 29 $(TARGET).exe: $(OBJS) makefile 30 $(LD) $(LDFLAGS) -Fe$@ $(OBJS) 31 $(CP) $(TARGET).exe $(PDWIN32_BIN) 32 $(CP) $@ $(PDWIN32_BIN) 41 # Lib rule - dummy rule. 42 lib: 33 43 34 44 45 # Exe rule - builds the target exe. 46 $(OBJDIR)\$(TARGET).exe: $(OBJS) $(OBJDIR)\$(TARGET).lrf 47 $(LD2) $(LD2FLAGS_ODINCRT) @$(OBJDIR)\$(TARGET).lrf 48 49 50 # Linker file - creates the parameter file passed on to the linker. 51 $(OBJDIR)\$(TARGET).lrf: makefile 52 @echo Creating file <<$@ 53 /OUT:$(OBJDIR)\$(TARGET).exe 54 /MAP:$(OBJDIR)\$(TARGET).map 55 /PMTYPE:pm 56 /STACK:0x100000 57 /NOBASE 58 $(OBJS) 59 os2386.lib 60 <<keep 61 62 63 # Dep rule - makes depenencies for C, C++ and Asm files. 35 64 dep: 36 65 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \ 37 66 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h 38 67 39 !ifndef NODEP40 !include .depend41 !endif42 68 69 # Includes the common rules. 70 !include $(PDWIN32_INCLUDE)/pdwin32.post 43 71 44 clean:45 $(RM) *.obj *.lib *.dll *.map *.pch *.exe \46 $(PDWIN32_BIN)\$(TARGET).exe47
Note:
See TracChangeset
for help on using the changeset viewer.