24985a623a52464cfb7f3e1871f22947707eed7d
[lincan.git] / embedded / app / usbcan / Makefile.omk
1 # -*- makefile -*-
2
3 default_CONFIG = CONFIG_APP_USBCAN=n
4
5 ifeq ($(CONFIG_APP_USBCAN),y)
6
7 #ULAN_ID=usbtest
8
9 #default_CONFIG += CONFIG_ULOI_LT=x
10 #default_CONFIG += CONFIG_ULAN_DY=x
11 default_CONFIG += MACH=$(MACH)
12 #default_CONFIG += ULAN_ID=$(ULAN_ID)
13 default_CONFIG += CONFIG_MISC_VECT=x
14
15 LOCAL_CONFIG_H = local_config.h
16
17 INCLUDES += -I.
18
19 #include_HEADERS  = ul_idstr.h
20
21 bin_PROGRAMS = usbcan
22 usbcan_SOURCES = main.c usb_srq.c can.c can_queue.c sja1000p.c can_quesysless.c
23
24 #usbtest_SOURCES +=  ul_idstr.c
25 #lib_LOADLIBES =  bspbase ul_drv lpciap keyval lpciap_kvpb mach_hal uldy
26 lib_LOADLIBES =  bspbase usbbase lpcusb mach_hal
27 usbcan_MOREOBJS = $(USER_LIB_DIR)/system_stub.o $(USER_LIB_DIR)/ivt.o
28 nobase_include_HEADERS = usb/usb_defs.h
29
30 link_VARIANTS = boot
31
32 endif #CONFIG_ULBOOT