1 ##############################################################################
2 # Microwindows template Makefile
3 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4 # Licence: wxWindows Licence
5 ##############################################################################
8 ifeq "$(MICROWINDOWS)" ""
9 TOP=/home/julians/local/microwindows/microwindows-0.89pre8/src
12 CONFIG = $(TOP)/config
16 WXLIB=$(WXDIR)/lib/libwx.a
21 ZLIBLIB = $(WXDIR)/lib/libzlib.a
22 PNGLIB = $(WXDIR)/lib/libpng.a
23 JPEGLIB = $(WXDIR)/lib/libjpeg.a
24 TIFFLIB = $(WXDIR)/lib/libtiff.a
28 ######################## Additional Flags section ############################
30 # Directories list for header files
31 INCLUDEDIRS += -I$(WXDIR)/include
32 # Defines for preprocessor
33 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\""
35 # Compilation flags for C files OTHER than include directories
37 # Preprocessor flags OTHER than defines
40 #LDFLAGS += -lwx -L$(WXDIR)/lib
43 ############################# targets section ################################
45 # If you want to create a library with the objects files, define the name here
48 # If we put it below OBJS=, Makefile.rules includes .depend
49 # and it continually looks for .c files to satisfy .o.cpp
50 # dependency. What's going on there?
51 include $(TOP)/Makefile.rules
53 # List of objects to compile
54 OBJS = widgets.o button.o combobox.o gauge.o listbox.o notebook.o radiobox.o slider.o spinbtn.o \
59 ######################### Makefile.rules section #############################
63 ######################## Tools targets section ###############################
65 widgets: $(OBJS) $(MWINLIBS) $(WXLIB) $(TOP)/config
66 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(WXLIB) $(MWINLIBS) -lm
68 #.SUFFIXES: .cpp .cxx .c
71 # $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c
74 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx
77 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp
84 @pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
87 @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd