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