2013-05-27 22:11:48 -06:00
|
|
|
CFLAGS += -Wall
|
|
|
|
CFLAGS += -Werror
|
2017-03-18 14:45:39 -06:00
|
|
|
TARGETS = hdjd explore
|
|
|
|
#CFLAGS += -g -DDEBUG
|
2013-05-27 22:11:48 -06:00
|
|
|
|
2013-09-15 21:42:33 -06:00
|
|
|
all: $(TARGETS)
|
2012-06-26 23:29:48 -06:00
|
|
|
|
2013-12-26 11:39:26 -07:00
|
|
|
hdjd: LDLIBS += $(shell pkg-config --libs libusb-1.0)
|
|
|
|
hdjd: LDLIBS += $(shell pkg-config --libs alsa)
|
2013-05-27 22:11:48 -06:00
|
|
|
hdjd: hdjd.o usb.o alsa.o
|
|
|
|
|
2013-12-26 11:39:26 -07:00
|
|
|
explore: LDLIBS += $(shell pkg-config --libs libusb-1.0)
|
2013-09-08 22:43:24 -06:00
|
|
|
explore.o: CFLAGS += $(shell pkg-config --cflags libusb-1.0)
|
|
|
|
|
2013-05-27 22:11:48 -06:00
|
|
|
alsa.o: CFLAGS += $(shell pkg-config --cflags alsa)
|
|
|
|
usb.o: CFLAGS += $(shell pkg-config --cflags libusb-1.0)
|
2012-08-07 10:44:58 -06:00
|
|
|
|
2013-09-08 17:45:44 -06:00
|
|
|
clean:
|
2013-09-15 21:42:33 -06:00
|
|
|
rm -f $(TARGETS) *.o
|