summaryrefslogtreecommitdiffstats
path: root/package/nvram/src/Makefile
blob: e882d58ea0b7155d83ae62c5759f0692c6504711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $Id$

LIBNVRAM_OBJS := nvram.o

all: libnvram.so nvram

%.o: %.c
	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -I. -Iinclude -o $@ $^

libnvram.so: $(LIBNVRAM_OBJS)
	$(CC) -shared -o $@ $^

nvram: main.o
	$(CC) -o $@ $^ -L. -lnvram

clean:
	rm -f *.o *.so nvram