Makefile.linux32 527 Bytes
Newer Older
1
TARGET_CFLAGS     = -DPOSIX -m32 -D_POSIX_SOURCE -D_GNU_SOURCE  $(GCC_GENERIC_FLAGS)
jdelange's avatar
jdelange committed
2
TARGET_LDFLAGS    =  -lpthread -lrt -m32 -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
3
SIMULINK_LDFLAGS  = -lm
4
CC                = gcc
5
LD                = gcc
6
GPROF             = gprof
7

jdelange's avatar
jdelange committed
8
USE_USB_BRICK=$(shell grep __PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK deployment.h 2>/dev/null|wc -l)
9
10
11
12
13

ifdef USE_GPROF
TARGET_LDFLAGS+=-pg
endif

14
15
16
ifeq ($(USE_USB_BRICK),1)
TARGET_LDFLAGS+=-lSpaceWireUSBAPI -lConfigLibraryUSB
endif
17
18
19
20

target-clean:

target-objects: