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

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