From 8e48a7e9d50221ed75974ce8537d25e96d52ec8d Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Tue, 25 Feb 2014 00:08:54 +0200 Subject: Initial commit Signed-off-by: Roman Yeryomin --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2646908 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CFLAGS := -s -Wall -c -Os $(CFLAGS) +LDFLAGS = -s -Wall + + +CFLAGS += -ffunction-sections -fdata-sections +LDFLAGS += --static -s -Wl,--gc-sections + +default: all +all: rtkmib + +rtkmib: rtkmib.o + $(CC) $(LDFLAGS) -o rtkmib rtkmib.o + +rtkmib.o: rtkmib.c + $(CC) $(CFLAGS) -o rtkmib.o rtkmib.c + +clean: + rm -f *.o + rm -f rtkmib -- cgit v1.2.3