]> rtime.felk.cvut.cz Git - frescor/fosa.git/commitdiff
git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@1791 35b4ef3e-fd22...
authorbrocalv <brocalv@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 22 May 2009 10:06:43 +0000 (10:06 +0000)
committerbrocalv <brocalv@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Fri, 22 May 2009 10:06:43 +0000 (10:06 +0000)
rules.mk
src_partikle/Makefile

index 8e22efe384c3a7498a09221962fc5b34fc2ab113..313cac64bfbb7d81fc8ccce2d870bf4b5040653b 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -14,6 +14,14 @@ CFLAGS += -D$(PLATFORM) \
 # 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'";
 
index a52fce63bc96b7e1c1beaf16a752b62f19453abd..d9df2b1d419c3c909992a8cb5a97e2d263e493ea 100644 (file)
@@ -4,17 +4,6 @@ include ../rules.mk
 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)