summaryrefslogtreecommitdiff
path: root/openpcd/opcd_test/Makefile
blob: 12edce09b2ab6b89043a76fb696f664d307c5a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make
LDFLAGS=-lusb -lcrypt #-lzebvty -Lzebvty/
CFLAGS=-Wall

all: opcd_test opcd_sh

clean:
	-rm -f *.o opcd_test
	$(MAKE) -C ausb clean

ausb/libausb.a:
	$(MAKE) -C ausb libausb.a

opcd_test: opcd_test.o opcd_usb.o ausb/libausb.a
	$(CC) $(LDFLAGS) -o $@ $^

opcd_sh: opcd_sh.o opcd_usb.o ausb/libausb.a zebvty/libzebvty.a
	$(CC) $(LDFLAGS) -o $@ $^
	

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<

.PHONEY: all clean
personal git repositories of Harald Welte. Your mileage may vary