| 1 | #
|
|---|
| 2 | # PD-Win32 API
|
|---|
| 3 | #
|
|---|
| 4 | # ddraw.dll makefile
|
|---|
| 5 | #
|
|---|
| 6 |
|
|---|
| 7 | PDWIN32_INCLUDE = ..\..\include
|
|---|
| 8 | PDWIN32_LIB = ..\..\lib
|
|---|
| 9 | PDWIN32_BIN = ..\..\bin
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | !include $(PDWIN32_INCLUDE)/pdwin32.mk
|
|---|
| 13 | ASFLAGS = -Sc -Sv:ALP
|
|---|
| 14 |
|
|---|
| 15 | CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE);
|
|---|
| 16 | CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE);
|
|---|
| 17 |
|
|---|
| 18 | TARGET = ddraw
|
|---|
| 19 |
|
|---|
| 20 | OBJS = ddraw.obj os2ddraw.obj os2clipper.obj os2d3d.obj iccio1.obj asmutil.obj\
|
|---|
| 21 | os2surface.obj os2palette.obj os2palset.obj rectangle.obj initterm.obj
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | LIBS = ..\..\lib\pmwinx.lib mmpm2.lib ..\..\lib\comctl32.lib $(PDWIN32_LIB)\advapi32.lib $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)\gdi32.lib $(PDWIN32_LIB)\comctl32.lib $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
|
|---|
| 25 |
|
|---|
| 26 | all: $(TARGET).dll $(TARGET).lib
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | $(TARGET).dll: $(OBJS) $(TARGET).def
|
|---|
| 30 | $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def $(LIBS)
|
|---|
| 31 | $(CP) $@ $(PDWIN32_BIN)
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | $(TARGET).lib: $(TARGET).dll
|
|---|
| 35 | $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET).dll
|
|---|
| 36 | $(CP) $@ $(PDWIN32_LIB)
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | ddraw.obj: ddraw.cpp \
|
|---|
| 40 | os2ddraw.h \
|
|---|
| 41 | $(PDWIN32_INCLUDE)\win\ddraw.h
|
|---|
| 42 |
|
|---|
| 43 | os2ddraw.obj: os2ddraw.cpp \
|
|---|
| 44 | os2palette.h \
|
|---|
| 45 | os2clipper.h \
|
|---|
| 46 | os2surface.h \
|
|---|
| 47 | os2ddraw.h\
|
|---|
| 48 | $(PDWIN32_INCLUDE)\win\ddraw.h \
|
|---|
| 49 | $(PDWIN32_INCLUDE)\win\d3d.h
|
|---|
| 50 |
|
|---|
| 51 | os2d3d.obj: os2d3d.cpp \
|
|---|
| 52 | os2ddraw.h\
|
|---|
| 53 | $(PDWIN32_INCLUDE)\win\ddraw.h \
|
|---|
| 54 | $(PDWIN32_INCLUDE)\win\d3d.h
|
|---|
| 55 |
|
|---|
| 56 | os2palette.obj: os2palette.cpp \
|
|---|
| 57 | os2palette.h \
|
|---|
| 58 | os2clipper.h \
|
|---|
| 59 | os2surface.h \
|
|---|
| 60 | os2palset.h \
|
|---|
| 61 | os2ddraw.h
|
|---|
| 62 |
|
|---|
| 63 | os2palset.obj: os2palset.cpp \
|
|---|
| 64 | os2palset.h
|
|---|
| 65 |
|
|---|
| 66 | os2clipper.obj: os2clipper.cpp \
|
|---|
| 67 | os2palette.h \
|
|---|
| 68 | os2clipper.h \
|
|---|
| 69 | os2surface.h \
|
|---|
| 70 | os2ddraw.h\
|
|---|
| 71 | $(PDWIN32_INCLUDE)\win\ddraw.h \
|
|---|
| 72 | $(PDWIN32_INCLUDE)\win\d3d.h
|
|---|
| 73 |
|
|---|
| 74 | os2surface.obj: os2surface.cpp \
|
|---|
| 75 | os2palette.h \
|
|---|
| 76 | os2clipper.h \
|
|---|
| 77 | os2surface.h \
|
|---|
| 78 | os2ddraw.h\
|
|---|
| 79 | $(PDWIN32_INCLUDE)\win\ddraw.h \
|
|---|
| 80 | $(PDWIN32_INCLUDE)\win\d3d.h
|
|---|
| 81 |
|
|---|
| 82 | rectangle.obj: rectangle.cpp
|
|---|
| 83 |
|
|---|
| 84 | initterm.obj: initterm.cpp initterm.h
|
|---|
| 85 |
|
|---|
| 86 | clean:
|
|---|
| 87 | $(RM) *.obj *.lib *.dll *.map *.pch
|
|---|
| 88 | $(RM) $(PDWIN32_BIN)\$(TARGET).dll
|
|---|
| 89 | $(RM) $(PDWIN32_LIB)\$(TARGET).lib
|
|---|