Changeset 3031 for trunk/src/gdi32
- Timestamp:
- Mar 7, 2000, 12:39:20 AM (26 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/makefile
r2802 r3031 1 # $Id: makefile,v 1.2 2 2000-02-16 14:18:10 sandervlExp $1 # $Id: makefile,v 1.23 2000-03-06 23:38:38 bird Exp $ 2 2 3 3 # 4 # PD-Win32 API4 # Odin32 API 5 5 # 6 6 # gdi32.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 14 15 16 # Compiler, tools, and interference rules. 15 17 !include $(PDWIN32_INCLUDE)/pdwin32.mk 16 18 17 19 18 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE) 19 C XXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)20 # Flag overloads and local macros. 21 CLEANEXTRAS = gdi32rsrc.asm 20 22 23 24 # Object files. All objects should be prefixed with $(OBJDIR)! 25 OBJS = \ 26 $(OBJDIR)\gdi32.obj \ 27 $(OBJDIR)\opengl.obj \ 28 $(OBJDIR)\callback.obj \ 29 $(OBJDIR)\dibsect.obj \ 30 $(OBJDIR)\initterm.obj \ 31 $(OBJDIR)\oslibgdi.obj \ 32 $(OBJDIR)\font.obj \ 33 $(OBJDIR)\text.obj \ 34 $(OBJDIR)\palette.obj \ 35 $(OBJDIR)\line.obj \ 36 $(OBJDIR)\oslibgpi.obj \ 37 $(OBJDIR)\region.obj \ 38 $(OBJDIR)\metafile.obj \ 39 $(OBJDIR)\dibitmap.obj \ 40 $(OBJDIR)\blit.obj \ 41 $(OBJDIR)\rgbcvt.obj \ 42 $(OBJDIR)\dbglocal.obj \ 43 $(OBJDIR)\gdi32rsrc.obj 44 45 46 # Target name - name of the dll without extention and path. 21 47 TARGET = gdi32 22 48 23 OBJS = gdi32.obj opengl.obj callback.obj dibsect.obj initterm.obj resource.obj \ 24 oslibgdi.obj font.obj text.obj palette.obj line.obj oslibgpi.obj region.obj \ 25 metafile.obj dibitmap.obj blit.obj rgbcvt.obj dbglocal.obj 49 50 # All rule - build objs, target dll, copies dll to bin and makes libs. 51 all: $(OBJDIR) \ 52 $(OBJDIR)\$(TARGET).dll \ 53 $(PDWIN32_BIN)\$(TARGET).dll \ 54 lib 26 55 27 56 28 all: $(TARGET).dll $(TARGET).lib 57 # Lib rule - build importlibrary (and evt. other libs) 58 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 29 59 30 60 31 $(TARGET).dll: $(OBJS) $(TARGET).def 32 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 33 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib $(PDWIN32_LIB)/user32.lib \ 34 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O) 35 $(CP) $@ $(PDWIN32_BIN) 61 # Dll rule - builds the target dll. 62 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf 63 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf 36 64 37 65 38 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 39 40 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib 41 $(CP) $** $@ 42 43 $(TARGET).lib: $(TARGET)exp.def 44 $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def 45 $(CP) $@ $(PDWIN32_LIB) 46 47 $(TARGET)exp.def: $(TARGET).def 48 $(IMPDEF) $** $@ 66 # Linker file - creates the parameter file passed on to the linker. 67 $(OBJDIR)\$(TARGET).lrf: makefile 68 @echo Creating file <<$@ 69 /OUT:$(OBJDIR)\$(TARGET).dll 70 /MAP:$(OBJDIR)\$(TARGET).map 71 $(OBJS) 72 $(PDWIN32_LIB)/pmwinx.lib 73 $(PDWIN32_LIB)/kernel32.lib 74 $(PDWIN32_LIB)/user32.lib 75 $(PDWIN32_LIB)/odincrt.lib 76 OS2386.LIB 77 $(RTLLIB_O) 78 $(TARGET).def 79 <<keep 49 80 50 81 51 resource.asm: gdi32.rc 52 $(RC) $(RCFLAGS) -o resource.asm gdi32.rc 53 54 82 # Dep rule - makes depenencies for C, C++ and Asm files. 55 83 dep: 56 84 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \ 57 85 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h 58 86 59 !ifndef NODEP60 !include .depend61 !endif62 87 88 # Includes the common rules. 89 !include $(PDWIN32_INCLUDE)/pdwin32.post 63 90 64 clean:65 $(RM) *.obj *.lib *.dll *.map *.pch resource.asm \66 $(PDWIN32_BIN)\$(TARGET).dll $(PDWIN32_LIB)\$(TARGET).lib \67 $(TARGET)exp.def68
Note:
See TracChangeset
for help on using the changeset viewer.