editor/bass-sys/linux/bass24/makefile.in

13 lines
383 B
Makefile
Raw Normal View History

2021-01-08 03:37:50 +00:00
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 $@