Diff of /Makefile [57cb8e] .. [8e00c4]  Maximize  Restore

  Switch to side-by-side view

--- a/Makefile
+++ b/Makefile
@@ -1,28 +1,23 @@
-CC=$(CROSS_COMPILE)gcc
-CFLAGS=-static -g -Wall -fPIC -mcpu=5208 -DLANTRONIX_CPM
-INCLUDES=-I$(ROOTDIR)/include -I$(ROOTDIR)/user/lantronix/libcp -I./parsers -I.
-LDFLAGS=-static -g -fPIC -lparsers  -lm
-LIBRARIES=-L$(ROOTDIR)/user/lantronix/libcp -L$(ROOTDIR)/lib -L./parsers
-SOURCES=main.c utils.c stm8.c e_w_routines.c serial_common.c serial_platform.c  
-OBJECTS=$(SOURCES:.c=.o)
+CC = $(CROSS_COMPILE)gcc
+AR = $(CROSS_COMPILE)ar
+export CC
+export AR
 
-
-
-all: lib_parsers $(SOURCES) stm8flash
-
-stm8flash: $(OBJECTS) 
-	$(CC) $(OBJECTS) $(LIBRARIES) $(LDFLAGS) -o $@
-
-lib_parsers:
+all:
 	$(MAKE) -C parsers
-
-.c.o:
-	$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
+	$(CC) -g -o stm32flash -I./ \
+		main.c \
+		utils.c \
+		stm32.c \
+		serial_common.c \
+		serial_platform.c \
+		parsers/parsers.a \
+		stm32/stmreset_binary.c \
+		-Wall
 
 clean:
-	rm -f *.o
-	rm -f stm8flash
-	rm -f stm8flash.gdb
 	$(MAKE) -C parsers clean
-	
-romfs:
+	rm -f stm32flash
+
+install: all
+	cp stm32flash /usr/local/bin

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks