openpcd/host/Makefile @ master
1 | ae06ac82 | (no author) | #!/usr/bin/make
|
---|---|---|---|
2 | 13da9a6f | (no author) | LDFLAGS=-lusb -lcrypt #-lzebvty -Lzebvty/ |
3 | e73b417c | meri | CFLAGS=-Wall -I../firmware/include |
4 | ae06ac82 | (no author) | |
5 | e73b417c | meri | all: opcd_presence opcd_test opcd_sh |
6 | ae06ac82 | (no author) | |
7 | clean: |
||
8 | 744b5882 | meri | -rm -f *.o opcd_test opcd_sh opcd_presence |
9 | 4c1c0deb | (no author) | $(MAKE) -C ausb clean |
10 | ae06ac82 | (no author) | |
11 | 4c1c0deb | (no author) | ausb/libausb.a: |
12 | $(MAKE) -C ausb libausb.a |
||
13 | ae06ac82 | (no author) | |
14 | e73b417c | meri | opcd_presence: opcd_presence.o opcd_usb.o ausb/libausb.a |
15 | $(CC) $(LDFLAGS) -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -o $@ $^ |
||
16 | |||
17 | 4c1c0deb | (no author) | opcd_test: opcd_test.o opcd_usb.o ausb/libausb.a |
18 | $(CC) $(LDFLAGS) -o $@ $^ |
||
19 | |||
20 | 13da9a6f | (no author) | opcd_sh: opcd_sh.o opcd_usb.o ausb/libausb.a zebvty/libzebvty.a |
21 | $(CC) $(LDFLAGS) -o $@ $^ |
||
22 | |||
23 | |||
24 | 4c1c0deb | (no author) | %.o: %.c |
25 | ae06ac82 | (no author) | $(CC) $(CFLAGS) -o $@ -c $< |
26 | |||
27 | .PHONEY: all clean |