aboutsummaryrefslogtreecommitdiffstats
path: root/demos/GNU-Linux-GCC/Makefile
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-23 10:36:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-05-23 10:36:27 +0000
commit3d64c337cb92683e21325df054da024732bd7199 (patch)
treeb45d3a8110ad5896018ddbd82cf3304249e6617c /demos/GNU-Linux-GCC/Makefile
parent957da89e719258a6cbb4b7c655baeef976d28cb9 (diff)
downloadChibiOS-3d64c337cb92683e21325df054da024732bd7199.tar.gz
ChibiOS-3d64c337cb92683e21325df054da024732bd7199.tar.bz2
ChibiOS-3d64c337cb92683e21325df054da024732bd7199.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@984 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/GNU-Linux-GCC/Makefile')
-rw-r--r--demos/GNU-Linux-GCC/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/GNU-Linux-GCC/Makefile b/demos/GNU-Linux-GCC/Makefile
index 988cf0364..5483d4448 100644
--- a/demos/GNU-Linux-GCC/Makefile
+++ b/demos/GNU-Linux-GCC/Makefile
@@ -16,9 +16,9 @@
# Start of default section
#
-TRGT = i686-pc-cygwin-
-CC = $(TRGT)gcc-4
-AS = $(TRGT)gcc-4 -x assembler-with-cpp
+TRGT =
+CC = $(TRGT)gcc
+AS = $(TRGT)gcc -x assembler-with-cpp
# List all default C defines here, like -D_DEBUG=1
DDEFS =
@@ -102,7 +102,7 @@ CPFLAGS += -MD -MP -MF .dep/$(@F).d
# makefile rules
#
-all: $(OBJS) $(PROJECT).exe
+all: $(OBJS) $(PROJECT)
%o : %c
$(CC) -c $(CPFLAGS) -I . $(INCDIR) $< -o $@
@@ -110,7 +110,7 @@ all: $(OBJS) $(PROJECT).exe
%o : %s
$(AS) -c $(ASFLAGS) $< -o $@
-%exe: $(OBJS)
+$(PROJECT): $(OBJS)
$(CC) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
gcov:
@@ -120,7 +120,7 @@ gcov:
clean:
-rm -f $(OBJS)
- -rm -f $(PROJECT).exe
+ -rm -f $(PROJECT)
-rm -f $(PROJECT).map
-rm -f $(SRC:.c=.c.bak)
-rm -f $(SRC:.c=.lst)