1 ##############################################################################
2 # Microwindows template Makefile
3 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4 ##############################################################################
6 TOP=/home/julians/microwindows/microwindows-0.89pre8/src
11 WXLIB=$(WXDIR)/lib/libwx.a
16 ZLIBLIB = $(WXDIR)/lib/libzlib.a
17 PNGLIB = $(WXDIR)/lib/libpng.a
18 JPEGLIB = $(WXDIR)/lib/libjpeg.a
19 TIFFLIB = $(WXDIR)/lib/libtiff.a
23 ######################## Additional Flags section ############################
25 # Directories list for header files
26 INCLUDEDIRS += -I$(WXDIR)/include
27 # Defines for preprocessor
28 DEFINES += -DMWIN -D__WXMSW__ -D__WXMICROWIN__ -D__WXUNIVERSAL__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__ -DwxSIZE_T_IS_UINT -DWXWIN_OS_DESCRIPTION="\"MicroWindows\""
30 # Compilation flags for C files OTHER than include directories
32 # Preprocessor flags OTHER than defines
35 #LDFLAGS += -lwx -L$(WXDIR)/lib
38 ############################# targets section ################################
40 # If you want to create a library with the objects files, define the name here
43 # If we put it below OBJS=, Makefile.rules includes .depend
44 # and it continually looks for .c files to satisfy .o.cpp
45 # dependency. What's going on there?
46 include $(TOP)/Makefile.rules
48 # List of objects to compile
54 ######################### Makefile.rules section #############################
58 ######################## Tools targets section ###############################
60 minimal: $(OBJS) $(MWINLIBS) $(WXLIB) $(TOP)/config
61 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(WXLIB) $(MWINLIBS) -lm
63 mtest: $(MTESTOBJS) $(MWINLIBS) $(TOP)/config
64 $(CC) $(CFLAGS) $(LDFLAGS) $(MTESTOBJS) -o $@ $(MWINLIBS)
66 #.SUFFIXES: .cpp .cxx .c
69 # $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c
72 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx
75 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp
77 #$(COMMDIR)/appcmn.o: $(COMMDIR)/appcmn.cpp
78 # $(CC) -c $(CPPFLAGS) -o $@ $*.cpp
80 #appcmn.o: $(COMMDIR)/appcmn.cpp
81 # $(CC) $(CPPFLAGS) -c -o $@ $<
88 @pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
91 @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd