]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.mic
Don't enter an infinite loop if a spacer with min size of -1 is used.
[wxWidgets.git] / samples / widgets / makefile.mic
1 ##############################################################################
2 # Microwindows template Makefile
3 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4 # Licence: wxWindows Licence
5 ##############################################################################
6
7 TOP=$(MICROWINDOWS)
8 ifeq "$(MICROWINDOWS)" ""
9 TOP=/home/julians/local/microwindows/microwindows-0.89pre8/src
10 endif
11
12 CONFIG = $(TOP)/config
13 WXDIR = ../..
14 OBJSUFF = o
15 SRCSUFF = cpp
16 WXLIB=$(WXDIR)/lib/libwx.a
17 AROPTIONS = ruv
18 RANLIB = ranlib
19 RM = rm -f
20
21 ZLIBLIB = $(WXDIR)/lib/libzlib.a
22 PNGLIB = $(WXDIR)/lib/libpng.a
23 JPEGLIB = $(WXDIR)/lib/libjpeg.a
24 TIFFLIB = $(WXDIR)/lib/libtiff.a
25
26 include $(CONFIG)
27
28 ######################## Additional Flags section ############################
29
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\""
34
35 # Compilation flags for C files OTHER than include directories
36 CFLAGS +=
37 # Preprocessor flags OTHER than defines
38 CPPFLAGS +=
39 # Linking flags
40 #LDFLAGS += -lwx -L$(WXDIR)/lib
41 LDFLAGS += $(WXLIB)
42
43 ############################# targets section ################################
44
45 # If you want to create a library with the objects files, define the name here
46 LIBNAME =
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?
51 include $(TOP)/Makefile.rules
52
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 \
55 static.o textctrl.o
56
57 all: widgets
58
59 ######################### Makefile.rules section #############################
60
61
62
63 ######################## Tools targets section ###############################
64
65 widgets: $(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
79 cleanwx:
80 -$(RM) *.o
81 -$(RM) widgets
82
83 wx:
84 @pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
85
86 wxfull:
87 @pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd