1 ##############################################################################
2 # Microwindows template Makefile
3 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4 ##############################################################################
7 ifeq "$(MICROWINDOWS)" ""
8 TOP=/home/julians/local/microwindows/microwindows-0.89pre8/src
11 CONFIG = $(TOP)/config
15 WXLIB=$(WXDIR)/lib/libwx.a
20 ZLIBLIB = $(WXDIR)/lib/libzlib.a
21 PNGLIB = $(WXDIR)/lib/libpng.a
22 JPEGLIB = $(WXDIR)/lib/libjpeg.a
23 TIFFLIB = $(WXDIR)/lib/libtiff.a
27 ######################## Additional Flags section ############################
29 # Directories list for header files
30 INCLUDEDIRS += -I$(WXDIR)/include
31 # Defines for preprocessor
32 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\""
34 # Compilation flags for C files OTHER than include directories
36 # Preprocessor flags OTHER than defines
39 #LDFLAGS += -lwx -L$(WXDIR)/lib
42 ############################# targets section ################################
44 # If you want to create a library with the objects files, define the name here
47 # If we put it below OBJS=, Makefile.rules includes .depend
48 # and it continually looks for .c files to satisfy .o.cpp
49 # dependency. What's going on there?
50 include $(TOP)/Makefile.rules
52 # List of objects to compile
57 ######################### Makefile.rules section #############################
61 ######################## Tools targets section ###############################
63 minimal: $(OBJS) $(MWINLIBS) $(WXLIB) $(TOP)/config
64 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(WXLIB) $(MWINLIBS) -lm
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
82 @pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
85 @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd