mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
7b9d199ec8
wrap some libc functions that do system calls (terminal output) wrap read/write with syscall guard define real_read/write (next dynamic linker find for read/write) guard system calls in remaining code introduce native_internhal.h throw out some debug statements that break things clean up includes a bit declare board_init in native_internhal.h add -ldl to LINKFLAGS for cpu/syscalls
24 lines
496 B
Makefile
24 lines
496 B
Makefile
export INCLUDES += -I$(RIOTBOARD)/native/include
|
|
export CPU = native
|
|
|
|
# toolchain config
|
|
export PREFIX =
|
|
#export CC = @$(PREFIX)gcc
|
|
export AR = @$(PREFIX)ar
|
|
export CFLAGS += -std=gnu99 -Wall -m32
|
|
export ASFLAGS =
|
|
export AS = $(PREFIX)as
|
|
export LINK = $(PREFIX)gcc
|
|
export SIZE = $(PREFIX)size
|
|
export OBJCOPY = $(PREFIX)objcopy
|
|
FLASHER = lpc2k_pgm
|
|
TERM = pyterm.py
|
|
|
|
LINKFLAGS += -m32 -gc -ldl
|
|
|
|
ifeq ($(strip $(PORT)),)
|
|
export PORT = /dev/ttyUSB0
|
|
endif
|
|
|
|
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|