-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile.common
12 lines (12 loc) · 1.13 KB
/
Makefile.common
1
2
3
4
5
6
7
8
9
10
11
12
# Gentoo fix needs include directory set to /usr/include/fltk/ or /usr/include/fltk-1/ for older versions of FLTK if you are using a different distribution then this may not apply to you.
CFLAGS := -isystem /usr/include/fltk/ -Imdcomp/include/ -IautogeneratedBindings/ -Iluaposix/ext/include -Iluaposix_headers -Iiqa/include -I. -I/usr/include/luajit-2.1 -Ilua-compat-53/c-api -DCOMPAT53_PREFIX=luacompat -c
BINDINGS := $(wildcard autogeneratedBindings/*.cpp) $(wildcard luaposix/ext/posix/*.c) $(wildcard luaposix/ext/posix/sys/*.c) \
$(wildcard moonfltk/src/*.cc) $(wildcard moonfltk/src/*.c) $(wildcard iqa/source/*.c)
BINDINGS := $(filter-out luaposix/ext/posix/posix.c, $(BINDINGS))
BINDINGS := $(filter-out luaposix/ext/posix/stdio.c, $(BINDINGS))
BINDINGS := $(filter-out moonfltk/src/open.c, $(BINDINGS))
BINDINGS := $(filter-out moonfltk/src/compat-5.3.c, $(BINDINGS))
BINDINGS := lua-zlib/lua_zlib.c $(BINDINGS)
# BINDINGS := lua-compat-5.3/c-api/compat-5.3.c $(BINDINGS)
CPPFLAGS += -DPACKAGE='"luaposix"' -DVERSION='"RGT"' -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DHAVE_NET_IF_H=1 -D_DEFAULT_SOURCE -DUSE_IMAGES=1
include Makefile.objects