| 1 | # $Id: makefile,v 1.9 1999-08-21 12:29:30 sandervl Exp $
|
|---|
| 2 |
|
|---|
| 3 | #
|
|---|
| 4 | # PD-Win32 API
|
|---|
| 5 | #
|
|---|
| 6 | # pe2lx.exe makefile
|
|---|
| 7 | #
|
|---|
| 8 |
|
|---|
| 9 | PDWIN32_INCLUDE = ..\..\include
|
|---|
| 10 | PDWIN32_LIB = ..\..\lib
|
|---|
| 11 | PDWIN32_BIN = ..\..\bin
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | !include $(PDWIN32_INCLUDE)/pdwin32.mk
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | CFLAGS = $(CFLAGS) /Ge+ /Tm+ /I$(PDWIN32_INCLUDE) /D__PE2LX__
|
|---|
| 18 | CXXFLAGS = $(CXXFLAGS) -Ge+ /Tm+ /I$(PDWIN32_INCLUDE) /D__PE2LX__
|
|---|
| 19 | LDFLAGS = $(LDFLAGS) -Ge+
|
|---|
| 20 |
|
|---|
| 21 | TARGET = pe2lx
|
|---|
| 22 |
|
|---|
| 23 | OBJS = pefile.obj pe.obj lx.obj icon.obj \
|
|---|
| 24 | menu.obj dialog.obj misc.obj \
|
|---|
| 25 | rcdata.obj icongrp.obj \
|
|---|
| 26 | strings.obj bitmap.obj accelerator.obj \
|
|---|
| 27 | cursor.obj cursorgrp.obj
|
|---|
| 28 |
|
|---|
| 29 | all: $(TARGET).exe
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | $(TARGET).exe: $(OBJS)
|
|---|
| 33 | $(LD) $(LDFLAGS) -Fe$@ $(OBJS) \
|
|---|
| 34 | $(PDWIN32_LIB)\LIBCONV.LIB $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
|
|---|
| 35 | $(CP) $(TARGET).exe $(PDWIN32_BIN)
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 | accelerator.obj: accelerator.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h \
|
|---|
| 39 | accelerator.h icon.h misc.h
|
|---|
| 40 | bitmap.obj: bitmap.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h \
|
|---|
| 41 | bitmap.h icon.h misc.h
|
|---|
| 42 | cursor.obj: cursor.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h \
|
|---|
| 43 | cursor.h icon.h misc.h
|
|---|
| 44 | cursorgrp.obj: cursorgrp.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h \
|
|---|
| 45 | cursor.h cursorgrp.h misc.h
|
|---|
| 46 | dialog.obj: dialog.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h \
|
|---|
| 47 | dialog.h misc.h
|
|---|
| 48 | icon.obj: icon.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h icon.h misc.h
|
|---|
| 49 | icongrp.obj: icongrp.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h icon.h \
|
|---|
| 50 | icongrp.h misc.h
|
|---|
| 51 | lx.obj: lx.cpp lx.h
|
|---|
| 52 | menu.obj: menu.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h menu.h
|
|---|
| 53 | misc.obj: misc.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h ..\..\include\versionos2.h
|
|---|
| 54 | pe.obj: pe.cpp $(PDWIN32_INCLUDE)\pefile.h lx.h \
|
|---|
| 55 | accelerator.h bitmap.h cursor.h \
|
|---|
| 56 | cursorgrp.h dialog.h icon.h \
|
|---|
| 57 | icongrp.h menu.h misc.h rcdata.h \
|
|---|
| 58 | strings.h
|
|---|
| 59 | pefile.obj: pefile.cpp $(PDWIN32_INCLUDE)\pefile.h misc.h
|
|---|
| 60 | rcdata.obj: rcdata.cpp lx.h rcdata.h
|
|---|
| 61 | strings.obj: strings.cpp lx.h misc.h strings.h
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | clean:
|
|---|
| 65 | $(RM) *.obj *.lib *.dll *~ *.map *.pch *.exe
|
|---|
| 66 | $(RM) $(PDWIN32_BIN)\$(TARGET).exe
|
|---|