Changeset 3031 for trunk/src/opengl/glide/cvg/makefile
- Timestamp:
- Mar 7, 2000, 12:39:20 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glide/cvg/makefile
r3011 r3031 1 # $Id: makefile,v 1.6 2000-03-04 20:03:43 bird Exp $ 1 # $Id: makefile,v 1.7 2000-03-06 23:33:43 bird Exp $ 2 2 3 # 3 # PD-Win32 API4 # Odin32 API 4 5 # 5 # Glide makefile6 # Glide\cvg makefile 6 7 # 7 8 9 # Directory macros. 8 10 PDWIN32_INCLUDE = ..\..\..\..\include 9 PDWIN32_LIB = ..\..\..\..\lib10 PDWIN32_BIN = ..\..\..\..\bin11 PDWIN32_TOOLS = ..\..\..\..\tools\bin11 PDWIN32_LIB = ..\..\..\..\lib 12 PDWIN32_BIN = ..\..\..\..\$(OBJDIR) 13 PDWIN32_TOOLS = ..\..\..\..\tools\bin 12 14 15 16 # Have extra clean rule. 17 CLEAN2 = 1 18 19 20 # Compiler, tools, and interference rules. 21 !include $(PDWIN32_INCLUDE)/pdwin32.mk 22 23 24 # Flag overloads and local macros. 25 CLEANEXTRAS = rsrc.asm 26 27 28 # Object files. All objects should be prefixed with $(OBJDIR)! 29 OBJS = \ 30 $(OBJDIR)\initterm.obj 31 32 33 # Target name - name of the dll without extention and path. 13 34 TARGET = glide2x 14 35 15 !include $(PDWIN32_INCLUDE)/pdwin32.mk16 36 17 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE) 18 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE) 37 # All rule - build objs, target dll, copies dll to bin and makes libs. 38 all: $(OBJDIR) \ 39 $(OBJDIR)\$(TARGET).dll \ 40 $(PDWIN32_BIN)\$(TARGET).dll \ 41 lib 19 42 20 OBJS = initterm.obj \21 glideres.obj \22 ..\swlibs\pcilib\pcilib.lib \23 texus\texus.lib \24 init\init.lib \25 glide\glide.lib \26 43 27 all: ..\swlibs\pcilib\pcilib.lib init\init.lib texus\texus.lib glide\glide.lib $(TARGET).dll $(TARGET).lib 44 # Lib rule - build importlibrary (and evt. other libs) 45 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 28 46 29 ..\swlibs\pcilib\pcilib.lib: 47 48 49 # Libs rule - Make (sub) libraries. (Not import libraries!) 50 libs: 30 51 cd ..\swlibs\pcilib 31 $(MAKE_CMD) 32 cd ..\..\cvg 33 34 init\init.lib: 35 cd init 36 $(MAKE_CMD) 52 $(MAKE_CMD) $@ 53 cd ..\..\cvg\init 54 $(MAKE_CMD) $@ 55 cd ..\glide 56 $(MAKE_CMD) $@ 57 cd ..\texus 58 $(MAKE_CMD) $@ 37 59 cd .. 38 60 39 glide\glide.lib:40 cd glide41 $(MAKE_CMD)42 cd ..43 61 44 texus\texus.lib: 45 cd texus 46 $(MAKE_CMD) 47 cd .. 62 # Dll rule - builds the target dll. 63 $(OBJDIR)\$(TARGET).dll: $(OBJS) libs $(TARGET).def $(OBJDIR)\$(TARGET).lrf 64 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf 48 65 49 $(TARGET).dll: $(OBJS) $(TARGET).def50 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \51 $(PDWIN32_LIB)/kernel32.lib \52 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)53 $(CP) $@ $(PDWIN32_BIN)\Glide\Voodoo254 66 55 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 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 ..\swlibs\pcilib\$(OBJDIR)\pcilib.lib 74 texus\$(OBJDIR)\texus.lib 75 init\$(OBJDIR)\init.lib 76 glide\$(OBJDIR)\glide.lib 77 $(PDWIN32_LIB)\kernel32.lib 78 $(PDWIN32_LIB)\odincrt.lib 79 OS2386.LIB 80 $(RTLLIB_O) 81 $(TARGET).def 82 <<keep 56 83 57 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib 84 85 # Copy rule - copies the dll. 86 $(PDWIN32_BIN)\Glide\Voodoo2\$(TARGET).dll: $(OBJDIR)\$(TARGET).dll 58 87 $(CP) $** $@ 59 88 60 $(TARGET).lib: $(TARGET).def61 $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET).def62 $(CP) $@ $(PDWIN32_LIB)63 89 64 RCFLAGS = $(RCFLAGS) -I..\swlibs\fxmisc -Iglide 65 66 glideres.asm: glide\glide.rc 67 $(RC) $(RCFLAGS) -o glideres.asm glide\glide.rc 68 69 initterm.obj: initterm.cpp 70 90 # Dep rule - makes depenencies for C, C++ and Asm files. 71 91 dep: 72 92 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \ 73 93 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h 74 94 cd ..\swlibs\pcilib 75 $(MAKE_CMD) dep76 cd ..\..\cvg\ glide77 $(MAKE_CMD) dep78 cd ..\ init79 $(MAKE_CMD) dep95 $(MAKE_CMD) $@ 96 cd ..\..\cvg\init 97 $(MAKE_CMD) $@ 98 cd ..\glide 99 $(MAKE_CMD) $@ 80 100 cd ..\texus 81 $(MAKE_CMD) dep101 $(MAKE_CMD) $@ 82 102 cd .. 83 103 84 !ifndef NODEP85 !include .depend86 !endif87 104 88 clean: 89 $(RM) *.obj *.pch 90 $(RM) *.map *.dll 91 $(RM) *.lib 92 $(RM) glideres.asm 105 # Extra cleanrule. 106 clean2: 93 107 cd ..\swlibs\pcilib 94 108 $(MAKE_CMD) clean … … 101 115 cd .. 102 116 117 118 # Includes the common rules. 119 !include $(PDWIN32_INCLUDE)/pdwin32.post 120 121 122
Note:
See TracChangeset
for help on using the changeset viewer.