]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/widgets/makefile.mic
reSWIGged
[wxWidgets.git] / samples / widgets / makefile.mic
... / ...
CommitLineData
1##############################################################################
2# Microwindows template Makefile
3# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4# Licence: wxWindows Licence
5##############################################################################
6
7TOP=$(MICROWINDOWS)
8ifeq "$(MICROWINDOWS)" ""
9TOP=/home/julians/local/microwindows/microwindows-0.89pre8/src
10endif
11
12CONFIG = $(TOP)/config
13WXDIR = ../..
14OBJSUFF = o
15SRCSUFF = cpp
16WXLIB=$(WXDIR)/lib/libwx.a
17AROPTIONS = ruv
18RANLIB = ranlib
19RM = rm -f
20
21ZLIBLIB = $(WXDIR)/lib/libzlib.a
22PNGLIB = $(WXDIR)/lib/libpng.a
23JPEGLIB = $(WXDIR)/lib/libjpeg.a
24TIFFLIB = $(WXDIR)/lib/libtiff.a
25
26include $(CONFIG)
27
28######################## Additional Flags section ############################
29
30# Directories list for header files
31INCLUDEDIRS += -I$(WXDIR)/include
32# Defines for preprocessor
33DEFINES += -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
35# Compilation flags for C files OTHER than include directories
36CFLAGS +=
37# Preprocessor flags OTHER than defines
38CPPFLAGS +=
39# Linking flags
40#LDFLAGS += -lwx -L$(WXDIR)/lib
41LDFLAGS += $(WXLIB)
42
43############################# targets section ################################
44
45# If you want to create a library with the objects files, define the name here
46LIBNAME =
47
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?
51include $(TOP)/Makefile.rules
52
53# List of objects to compile
54OBJS = widgets.o button.o combobox.o gauge.o listbox.o notebook.o radiobox.o slider.o spinbtn.o \
55 static.o textctrl.o
56
57all: widgets
58
59######################### Makefile.rules section #############################
60
61
62
63######################## Tools targets section ###############################
64
65widgets: $(OBJS) $(MWINLIBS) $(WXLIB) $(TOP)/config
66 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(WXLIB) $(MWINLIBS) -lm
67
68#.SUFFIXES: .cpp .cxx .c
69
70#.c.o:
71# $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c
72
73.cxx.o:
74 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx
75
76.cpp.o:
77 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp
78
79cleanwx:
80 -$(RM) *.o
81 -$(RM) widgets
82
83wx:
84 @pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
85
86wxfull:
87 @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd