Changeset 3031 for trunk/src/odincrt
- Timestamp:
- Mar 7, 2000, 12:39:20 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/odincrt/makefile
r2712 r3031 1 # $Id: makefile,v 1.1 6 2000-02-09 23:46:59 bird Exp $1 # $Id: makefile,v 1.17 2000-03-06 23:38:49 bird Exp $ 2 2 3 3 # 4 # PD-Win32 API4 # Odin32 API 5 5 # 6 6 # odincrt.dll makefile 7 7 # 8 8 9 # Directory macros. 9 10 PDWIN32_INCLUDE = ..\..\include 10 PDWIN32_LIB = ..\..\lib11 PDWIN32_BIN = ..\..\bin12 PDWIN32_TOOLS = ..\..\tools\bin11 PDWIN32_LIB = ..\..\lib 12 PDWIN32_BIN = ..\..\$(OBJDIR) 13 PDWIN32_TOOLS = ..\..\tools\bin 13 14 15 16 # Compiler, tools, and interference rules. 14 17 !include $(PDWIN32_INCLUDE)/pdwin32.mk 15 18 16 CXXFLAGS = $(CXXFLAGS_ODINCRT) -I$(PDWIN32_INCLUDE) 19 20 # Flag overloads and local macros. 21 CLEANEXTRAS = lz32rsrc.asm 22 NOTEXPDEF = 1 23 24 CXXFLAGS = $(CXXFLAGS_ODINCRT) 17 25 IMPLIBFLAGS = $(IMPLIBFLAGS) /NOIgnoreCase 18 26 27 !ifdef VAC36 28 RUNTIMELIBDEF = odin36.def 29 !else 30 RUNTIMELIBDEF = odincrt.def 31 !endif 32 33 34 # Object files. All objects should be prefixed with $(OBJDIR)! 35 OBJS = \ 36 $(OBJDIR)\odincrt.obj \ 37 $(OBJDIR)\initterm.obj \ 38 $(OBJDIR)\malloc.obj \ 39 $(OBJDIR)\string.obj \ 40 $(OBJDIR)\file.obj 41 42 43 # Target name - name of the dll without extention and path. 19 44 TARGET = odincrt 20 45 21 !ifdef VAC3622 RUNTIMELIBDEF=odin36.def23 !else24 RUNTIMELIBDEF=odincrt.def25 !endif26 46 27 OBJS = odincrt.obj initterm.obj malloc.obj string.obj file.obj 47 # All rule - build objs, target dll, copies dll to bin and makes libs. 48 all: $(OBJDIR) \ 49 $(OBJDIR)\$(TARGET).dll \ 50 $(PDWIN32_BIN)\$(TARGET).dll \ 51 lib 28 52 29 all: $(TARGET).dll $(TARGET).lib 30 31 $(TARGET).dll: $(OBJS) $(RUNTIMELIBDEF) 32 $(LD) $(LDFLAGS_ODINCRT) -Fm -Fe$@ $(OBJS) $(RUNTIMELIBDEF) $(SOMLIB) 33 $(CP) $@ $(PDWIN32_BIN) 53 # Lib rule - build importlibrary (and evt. other libs) 54 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 34 55 35 56 36 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 37 38 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib 39 $(CP) $** $@ 40 57 # ImpLib rule - build importlibrary (and evt. other libs) 41 58 $(TARGET).lib: $(TARGET).def 42 59 $(IMPLIB) $(IMPLIBFLAGS) $@ $** 43 $(CP) $@ $(PDWIN32_LIB)44 60 45 61 62 # Dll rule - builds the target dll. 63 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(RUNTIMELIBDEF) $(OBJDIR)\$(TARGET).lrf 64 $(LD2) $(LD2FLAGS_ODINCRT) @$(OBJDIR)\$(TARGET).lrf 65 66 67 # Linker file - creates the parameter file passed on to the linker. 68 $(OBJDIR)\$(TARGET).lrf: makefile 69 @echo Creating file <<$@ 70 /OUT:$(OBJDIR)\$(TARGET).dll 71 /MAP:$(OBJDIR)\$(TARGET).map 72 $(OBJS) 73 $(RUNTIMELIBDEF) 74 <<keep 75 76 77 # Dep rule - makes depenencies for C, C++ and Asm files. 46 78 dep: 47 79 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \ 48 80 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h 49 81 50 !ifndef NODEP51 !include .depend52 !endif53 82 83 # Includes the common rules. 84 !include $(PDWIN32_INCLUDE)/pdwin32.post 54 85 55 clean:56 $(RM) *.obj *.lib *.dll *.map *.pch \57 $(PDWIN32_BIN)\$(TARGET).dll $(PDWIN32_LIB)\$(TARGET).lib58
Note:
See TracChangeset
for help on using the changeset viewer.