# This prevents mgcc from removing the debug information (stripping)
LDFLAGS += -g
+# PaRTiKle uses its own compiler script
+ifeq ($(PLATFORM), PARTIKLE)
+ CC = pgcc
+ LD = ldkernel
+endif
+
+
+
none:
@exec echo -e "\nPlease introduce a target, i.e: 'make test'";
FOSA_MODULES=fosa_clocks_and_timers fosa_threads_and_signals fosa_app_def_sched fosa_mutexes_and_condvars fosa_misc fosa_long_jump fosa_time fosa_setjmp fosa_group_clocks
FOSA_OBJS=$(addsuffix .o,$(FOSA_MODULES))
-check_gcc = $(shell \
- if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ;\
- then \
- echo "$(1)";\
- else \
- echo "$(2)";\
- fi)
-
-
-CFLAGS += $(call check_gcc, -fno-stack-protector,)
-
LIBFOSA=libfosa_PARTIKLE.a
all: $(LIBFOSA)