editor/bass-sys/linux/bass24/makefile.in
2021-01-07 21:37:50 -06:00

12 lines
383 B
Makefile

FLAGS = -Os -I.. -L.. -L../x64 -lbass -lm -Wl,--no-warn-search-mismatch,-rpath,'$$ORIGIN/..:$$ORIGIN/../x64'
FLAGS += $(foreach pkg,$(PACKAGES),`pkg-config $(pkg) --cflags --libs`)
ifneq (,$(findstring libglade,$(PACKAGES)))
FLAGS += -export-dynamic
# path to glade file
FLAGS += -D'GLADE_PATH="$(shell pwd)/"'
endif
.PHONY: all clean
%: %.c
$(CC) $*.c $(FLAGS) -o $@