Project

General

Profile

Download (613 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/usr/bin/make
2
LDFLAGS=-lusb -lcrypt #-lzebvty -Lzebvty/
3
CFLAGS=-Wall -I../firmware/include
4

    
5
all: opcd_presence opcd_test opcd_sh
6

    
7
clean:
8
	-rm -f *.o opcd_test opcd_sh opcd_presence
9
	$(MAKE) -C ausb clean
10

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

    
14
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
opcd_test: opcd_test.o opcd_usb.o ausb/libausb.a
18
	$(CC) $(LDFLAGS) -o $@ $^
19

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

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

    
27
.PHONEY: all clean
(1-1/7)
Add picture from clipboard (Maximum size: 48.8 MB)