]> git.saurik.com Git - wxWidgets.git/blob - samples/minimal/makefile.mic
compilation fix for other (than GTK/MSW) ports
[wxWidgets.git] / samples / minimal / makefile.mic
1 ##############################################################################
2 # Microwindows template Makefile
3 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4 ##############################################################################
5
6 TOP=/home/julians/local/microwindows/microwin/src
7 CONFIG = $(TOP)/config
8 WXDIR = ../..
9 OBJSUFF = o
10 SRCSUFF = cpp
11 WXLIB=$(WXDIR)/lib/libwx.a
12 AROPTIONS = ruv
13 RANLIB = ranlib
14 RM = rm -f
15
16 ZLIBLIB = $(WXDIR)/lib/libzlib.a
17 PNGLIB = $(WXDIR)/lib/libpng.a
18 JPEGLIB = $(WXDIR)/lib/libjpeg.a
19 TIFFLIB = $(WXDIR)/lib/libtiff.a
20
21 include $(CONFIG)
22
23 ######################## Additional Flags section ############################
24
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\""
29
30 # Compilation flags for C files OTHER than include directories
31 CFLAGS +=
32 # Preprocessor flags OTHER than defines
33 CPPFLAGS +=
34 # Linking flags
35 #LDFLAGS += -lwx -L$(WXDIR)/lib
36 LDFLAGS += $(WXLIB)
37
38 ############################# targets section ################################
39
40 # If you want to create a library with the objects files, define the name here
41 LIBNAME =
42
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
47
48 # List of objects to compile
49 OBJS = minimal.o
50 MTESTOBJS = mtest.o
51
52 all: minimal
53
54 ######################### Makefile.rules section #############################
55
56
57
58 ######################## Tools targets section ###############################
59
60 minimal: $(OBJS) $(MWINLIBS) $(WXLIB) $(TOP)/config
61 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(WXLIB) $(MWINLIBS) -lm
62
63 mtest: $(MTESTOBJS) $(MWINLIBS) $(TOP)/config
64 $(CC) $(CFLAGS) $(LDFLAGS) $(MTESTOBJS) -o $@ $(MWINLIBS)
65
66 #.SUFFIXES: .cpp .cxx .c
67
68 #.c.o:
69 # $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c
70
71 .cxx.o:
72 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx
73
74 .cpp.o:
75 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp
76
77 #$(COMMDIR)/appcmn.o: $(COMMDIR)/appcmn.cpp
78 # $(CC) -c $(CPPFLAGS) -o $@ $*.cpp
79
80 #appcmn.o: $(COMMDIR)/appcmn.cpp
81 # $(CC) $(CPPFLAGS) -c -o $@ $<
82
83 cleanwx:
84 -$(RM) *.o
85 -$(RM) minimal
86
87 wx:
88 @pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
89
90 wxfull:
91 @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd