summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 264690895cc088271c2e69d555c341e33fecdf56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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