Makefile 157 Bytes
Newer Older
1
2
3
4
5
6
lib/libsomelib.a:	obj/somelib.o
	mkdir -p lib
	ar rvs $@ $<

obj/somelib.o:	src/somelib.c
	mkdir -p obj
7
	gcc -I headers/ -c -o $@ $<
8
9
10

clean:
	rm -rf obj lib