]> rtime.felk.cvut.cz Git - can-usb1.git/blob - ulan/host/ul_drv/utils/Makefile.std
Initializing repo
[can-usb1.git] / ulan / host / ul_drv / utils / Makefile.std
1 CC=gcc
2
3 # enable next for WinNT target
4 # OS=Windows_NT
5
6 # enable next for DJGPP target
7 # DJGPP = 1
8
9 ifdef DJGPP
10 CFLAGS += -I../config/djgpp
11 #  LOADLIBES += -liberty
12 #
13 else
14 ifeq ($(OS),Windows_NT)
15 #enable next for WinNT target
16 CFLAGS += -I../config/winnt
17 LOADLIBES += -liberty 
18 endif
19 endif
20
21 CFLAGS += -Wall -Wstrict-prototypes 
22 CFLAGS += -O2
23 CFLAGS += -I. -I.. -I../ul_lib
24 CFLAGS += -ggdb
25
26 LDFLAGS += -L../ul_lib
27 LOADLIBES += -lulan
28 LIBDEPS += ../ul_lib/libulan.a
29
30 TARGETS=ul_sendhex ul_lcscan ul_spy ul_lcabsp ul_buftst ul_sendmsg
31
32 all :   default
33
34 default : $(TARGETS)
35
36 ul_buftst : ul_buftst.o $(LIBDEPS)
37
38 ul_sendhex : ul_sendhex.o $(LIBDEPS)
39
40 ul_spy : ul_spy.o $(LIBDEPS)
41
42 ul_lcabsp : ul_lcabsp.o $(LIBDEPS)
43
44 ul_lcscan : ul_lcscan.o $(LIBDEPS)
45
46 .SUFFIXES: .i .s
47 %.c : %.i
48         $(CC) -E $(CFLAGS) $< >$@
49
50 %.c : %.s
51         $(CC) -S $(CFLAGS) $<
52
53 dep:
54         $(CC) $(CFLAGS) $(CPPFLAGS) -w -E -M *.c $(MORE_C_FILES) > depend
55
56 depend:
57         @touch depend
58
59 clean :
60         rm -f *.o *~ ulc_tst ul_sendhex ul_spy ul_lcabsp ul_lcscan ul_buftst \
61             ul_sendmsg *.exe depend
62
63 -include depend
64