Initial commit
[forms.git] / test / Makefile
blobafa6b62fe7694eaa62d69282a50433ea1ed383b2
3 # Forms makefile
6 include ../Rules.Make
8 INCLUDES = -I. -I../F -I$(FLTK_INCLUDES) -I$(COMMONCPP_INCLUDES)
9 CFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -Werror -Wall -D_REENTRANT -D_GNU_SOURCE -D_THREAD_SAFE $(INCLUDES)
10 LDFLAGS = $(LDFLAG) $(PROFILE)
11 X11LIBS = -L$(FLTK_LIBS) -lfltk -L/usr/X11/lib -lX11 -lXft -lXi -lXinerama -lfontconfig -lfreetype -lXext -lXrender -lxml2 -lexpat
12 # ÔÕÔÁ ÐÏËÁ ÌÉÎËÕÅÔÓÑ ÓÔÁÔÉÞÅÓËÉÊ ×ÁÒÉÁÎÔ libf, ÛÏÂ × ÐÅÒ×ÙÊ ÒÁÚ ÍÏÖÎÏ ÂÙÌÏ
13 # ÔÅÓÔ ÚÁÐÕÓÔÉÔØ
14 # ifdef GPM_DYNAMIC LIBS += -lgpm
15 LIBS = -Wl,--start-group ../libs/libf.a $(X11LIBS) \
16 -L$(COMMONCPP_LIBS) -lccgnu2 -lccext2 -lxml2 -lpthread -lssl -lgpm \
17 -ldl -lz -liberty -Wl,--end-group
18 # -Wl,--export-dynamic
19 OBJS = demo.o batch_ui.o console_ui.o x11_ui.o
21 .C.o:
22 $(CXX) -fPIC -MD $(CFLAGS) -c $< -o $@
24 all: demo
25 dist: clean dep all
27 demo: $(OBJS) ../libs/libf.a
28 $(CXX) $(DEBUG) $(LDFLAGS) $(OBJS) -o demo $(LIBS)
30 clean:
31 @rm -f *.o *.a *.so* core *.d *.out *~ demo DEAD*
33 -include $(wildcard *.d)
35 ###