Project

General

Profile

Revision 1187

Added multiple main functions hack

View differences:

Makefile
9 9

  
10 10
# Target file name (without extension).
11 11
TARGET = main
12
MAIN_FUNCTION = main_default
12 13

  
13 14
# Uncomment this to use the wireless library
14 15
USE_WIRELESS = 1
......
130 131
#  -Wa,...:      tell GCC to pass this to the assembler.
131 132
#    -adhlns...: create assembler listing
132 133
CFLAGS =
134
CFLAGS += -D$(MAIN_FUNCTION)=main
133 135
# CFLAGS = -g$(DEBUG)
134 136
CFLAGS += $(CDEFS) $(CINCS)
135 137
CFLAGS += -O$(OPT)

Also available in: Unified diff