8 INCLUDES
= -I
$(IBPP_INCLUDES
) -I
$(FORMS_INCLUDES
) -I
$(FLTK_INCLUDES
) \
9 -I
$(COMMONCPP_INCLUDES
) -I..
/include -I.
-I
$(FLEK_INCLUDES
)
10 CFLAGS
= $(OPTIMIZE
) $(PROFILE
) $(DEBUG
) -Werror
-Wall
-D_REENTRANT \
11 -D_GNU_SOURCE
-D_THREAD_SAFE
$(INCLUDES
)
12 LDFLAGS
= $(LDFLAG
) $(PROFILE
)
13 X11LIBS
= -L
$(FLTK_LIBS
) -lfltk
-L
/usr
/local
/lib
-lflek_core
-lflek_ui \
14 -L
/usr
/X11
/lib
-lX11
-lXft
-lXi
-lXinerama \
15 -lfontconfig
-lfreetype
-lXext
-lXrender
-lxml2
-lexpat
16 LIBS
= -Wl
,--start-group
-L
$(FIREBIRD_LIBS
) -lfbembed
-L
$(IBPP_LIBS
) -libpp \
17 -L
$(FORMS_LIBS
) -lf
$(X11LIBS
) -L
$(COMMONCPP_LIBS
) -lccgnu2 \
18 -lccext2
-lxml2
-lpthread
-lssl
-ldl
-lz
-lgpm
-liberty
-Wl
,--end-group
19 # -Wl,--export-dynamic
20 OBJS
= faraon.o x11_ui.o
23 $(CXX
) -fPIC
-MD
$(CFLAGS
) -c
$< -o
$@
29 @setterm
-foreground red
34 $(CXX
) $(DEBUG
) $(LDFLAGS
) $(OBJS
) -o faraon
$(LIBS
)
37 @
rm -f
*.o
*.a
*.so
* core
*.d
*out
*~ faraon DEAD
*
39 -include $(wildcard *.d
)