]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/minimal/makefile.mic
oops, wxGTK.spec missed clean section
[wxWidgets.git] / samples / minimal / makefile.mic
... / ...
CommitLineData
1##############################################################################
2# Microwindows template Makefile
3# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4##############################################################################
5
6TOP=/home/julians/microwindows/microwindows-0.89pre8/src
7CONFIG = $(TOP)/config
8WXDIR = ../..
9OBJSUFF = o
10SRCSUFF = cpp
11WXLIB=$(WXDIR)/lib/libwx.a
12AROPTIONS = ruv
13RANLIB = ranlib
14RM = rm -f
15
16ZLIBLIB = $(WXDIR)/lib/libzlib.a
17PNGLIB = $(WXDIR)/lib/libpng.a
18JPEGLIB = $(WXDIR)/lib/libjpeg.a
19TIFFLIB = $(WXDIR)/lib/libtiff.a
20
21include $(CONFIG)
22
23######################## Additional Flags section ############################
24
25# Directories list for header files
26INCLUDEDIRS += -I$(WXDIR)/include
27# Defines for preprocessor
28DEFINES += -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
31CFLAGS +=
32# Preprocessor flags OTHER than defines
33CPPFLAGS +=
34# Linking flags
35#LDFLAGS += -lwx -L$(WXDIR)/lib
36LDFLAGS += $(WXLIB)
37
38############################# targets section ################################
39
40# If you want to create a library with the objects files, define the name here
41LIBNAME =
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?
46include $(TOP)/Makefile.rules
47
48# List of objects to compile
49OBJS = minimal.o
50MTESTOBJS = mtest.o
51
52all: minimal
53
54######################### Makefile.rules section #############################
55
56
57
58######################## Tools targets section ###############################
59
60minimal: $(OBJS) $(MWINLIBS) $(WXLIB) $(TOP)/config
61 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(WXLIB) $(MWINLIBS) -lm
62
63mtest: $(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
83cleanwx:
84 -$(RM) *.o
85 -$(RM) minimal
86
87wx:
88 @pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
89
90wxfull:
91 @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd