f83fb3704b
The symbol generation shell scripts cause CRLF issues on Windows/Cygwin again and again. Instead of fixing this yet again I opted to remove the symbol generation script at least for the "no symbols" scenario with two C source files to be copied.
28 lines
620 B
Text
28 lines
620 B
Text
CONTIKI_CPU_DIRS = .
|
|
|
|
CONTIKI_SOURCEFILES += mtarch.c elfloader-x86.c
|
|
|
|
### Compiler definitions
|
|
CC = gcc
|
|
LD = gcc
|
|
AS = as
|
|
OBJCOPY = objcopy
|
|
STRIP = strip
|
|
CFLAGSNO = -Wall -g -I/usr/local/include
|
|
CFLAGS += $(CFLAGSNO)
|
|
LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic
|
|
|
|
### Compilation rules
|
|
|
|
%.so: $(OBJECTDIR)/%.o
|
|
$(LD) -shared -o $@ $^
|
|
|
|
# .PHONY: symbols.c symbols.h
|
|
ifdef CORE
|
|
symbols.c symbols.h:
|
|
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
|
else
|
|
symbols.c symbols.h:
|
|
cp ${CONTIKI}/tools/empty-symbols.c symbols.c
|
|
cp ${CONTIKI}/tools/empty-symbols.h symbols.h
|
|
endif
|