home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-04-12 | 1.3 KB | 60 lines |
- # Makefile : Builds hello example (DOS).
- # Use FINAL=1 argument to nmake to build final version with no debugging
- # info
-
- # Set WXDIR for your system
- WXDIR = $(CWORK)\wx\develop
- THISDIR = $(CWORK)\wx\develop\samples\hello
- WXLIB = $(WXDIR)\lib\wx.lib
- LIBS=$(WXLIB) oldnames libw llibcew commdlg
-
- !ifndef FINAL
- FINAL=0
- !endif
-
- !if "$(FINAL)" == "0"
- CPPFLAGS=/AL /W3 /Zi /G2sw /Od /YuWINDOWS.H /Dwx_msw /Fp$(CWORK)\wx\develop\src\windows.pch
- LINKFLAGS=/NOD /CO /ONERROR:NOEXE
- !else
- # /Ox for real FINAL version
- CPPFLAGS=/AL /W3 /G2sw /Od /YuWINDOWS.H /Dwx_msw /Fp$(CWORK)\wx\develop\src\windows.pch
- LINKFLAGS=/NOD /ONERROR:NOEXE
- !endif
-
- HEADERS = hello.h
- SOURCES = hello.cc
- OBJECTS = hello.obj
-
- all: hello.exe
-
- wx:
- cd $(WXDIR)\src
- nmake -f makefile.dos $(WXLIB) FINAL=$(FINAL)
- cd $(THISDIR)
-
- wxclean:
- cd $(WXDIR)\src
- nmake -f makefile.dos clean
- cd $(THISDIR)
-
-
- hello.exe: $(WXDIR)\src\dummy.obj $(WXLIB) hello.obj hello.def hello.res
- link $(LINKFLAGS) @<<
- $(WXDIR)\src\dummy.obj hello.obj,
- hello,
- NUL,
- $(LIBS),
- hello.def
- ;
- <<
- rc -30 -K hello.res
-
- hello.obj: hello.h hello.cc
- cl $(CPPFLAGS) /c /Tp $*.cc
-
- hello.res : hello.rc $(WXDIR)\include\wx.rc
- rc -r /i$(WXDIR)\include hello
-
- clean:
- -erase *.obj *.exe *.res *.map *.rws
-