Changeset 4624 for trunk/src/odincrt
- Timestamp:
- Nov 19, 2000, 10:27:40 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/odincrt/makefile
r3864 r4624 1 # $Id: makefile,v 1.1 8 2000-07-19 19:05:11 sandervlExp $1 # $Id: makefile,v 1.19 2000-11-19 09:06:58 bird Exp $ 2 2 3 3 # … … 7 7 # 8 8 9 # Directory macros. 10 PDWIN32_INCLUDE = ..\..\include 11 PDWIN32_LIB = ..\..\lib 12 PDWIN32_BIN = ..\..\$(OBJDIR) 13 PDWIN32_TOOLS = ..\..\tools\bin 9 # 10 # Tell the buildenvironment not to 11 # 12 NOTEXPDEF = 1 14 13 15 14 15 # 16 16 # Compiler, tools, and interference rules. 17 !include $(PDWIN32_INCLUDE)/pdwin32.mk 17 # 18 !include ../../include/pdwin32.mk 18 19 19 20 20 # Flag overloads and local macros. 21 CLEANEXTRAS = lz32rsrc.asm 22 NOTEXPDEF = 1 23 21 # 22 # Overrides. 23 # 24 24 CXXFLAGS = $(CXXFLAGS_ODINCRT) 25 LD2FLAGS = $(LD2FLAGS_ODINCRT) 26 CDEFINES = $(CDEFINES_ODINCRT) 25 27 IMPLIBFLAGS = $(IMPLIBFLAGS) /NOIgnoreCase 26 28 29 !ifdef DEBUG 30 DBG=d 31 !else 32 DBG= 33 !endif 34 !ifdef VAC3 35 DEFFILE = odincrt$(DBG).def 36 !endif 27 37 !ifdef VAC36 28 !ifdef DEBUG 29 RUNTIMELIBDEF = odin36d.def 30 !else 31 RUNTIMELIBDEF = odin36.def 38 DEFFILE = odin36$(DBG).def 32 39 !endif 33 !else 34 !ifdef DEBUG 35 RUNTIMELIBDEF = odincrtd.def 36 !else 37 RUNTIMELIBDEF = odincrt.def 38 !endif 40 !ifndef DEFFILE 41 !error "not supported on this compiler yet." 39 42 !endif 40 43 41 44 45 # 42 46 # Object files. All objects should be prefixed with $(OBJDIR)! 47 # 43 48 OBJS = \ 44 49 $(OBJDIR)\odincrt.obj \ … … 49 54 50 55 56 # 57 # Libraries. One space before the '\'. 58 # 59 LIBS = 60 61 62 # 51 63 # Target name - name of the dll without extention and path. 64 # 52 65 TARGET = $(ODINCRT) 53 66 54 67 55 # All rule - build objs, target dll, copies dll to bin and makes libs. 56 all: $(OBJDIR) \ 57 $(OBJDIR)\$(TARGET).dll \ 58 $(PDWIN32_BIN)\$(TARGET).dll \ 59 lib 60 61 # Lib rule - build importlibrary (and evt. other libs) 62 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 63 64 65 # ImpLib rule - build importlibrary (and evt. other libs) 66 $(TARGET).lib: $(TARGET).def 67 $(IMPLIB) $(IMPLIBFLAGS) $@ $** 68 69 70 # Dll rule - builds the target dll. 71 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(RUNTIMELIBDEF) $(OBJDIR)\$(TARGET).lrf 72 $(LD2) $(LD2FLAGS_ODINCRT) @$(OBJDIR)\$(TARGET).lrf 73 74 75 # Linker file - creates the parameter file passed on to the linker. 76 $(OBJDIR)\$(TARGET).lrf: makefile 77 @echo Creating file <<$@ 78 /OUT:$(OBJDIR)\$(TARGET).dll 79 /MAP:$(OBJDIR)\$(TARGET).map 80 $(OBJS) 81 $(RUNTIMELIBDEF) 82 <<keep 83 84 85 # Dep rule - makes depenencies for C, C++ and Asm files. 86 dep: 87 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \ 88 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h 89 90 68 # 91 69 # Includes the common rules. 70 # 92 71 !include $(PDWIN32_INCLUDE)/pdwin32.post 93 72
Note:
See TracChangeset
for help on using the changeset viewer.