]> git.datanom.net - hashtable.git/blob - Makefile
print function
[hashtable.git] / Makefile
1 CC=gcc
2 CFLAGS=-Wall -g
3 LIB=libhashtable
4 BINS=$(LIB).so $(LIB).a test word-generator
5
6 all: $(BINS)
7
8 %: %.c $(LIB).a
9 $(CC) $(CFLAGS) $< -o $@ $(LIB).a
10
11 %.o: %.c
12 $(CC) $(CLAGS) -c $<
13
14 lib%.a: %.o
15 ar -cvrs $@ $<
16
17 lib%.so: %.c
18 $(CC) $(CFLAGS) -shared -fPIC $< -o $@
19
20 clean:
21 rm -rf *.dSYM *.so *.a *.o $(BINS)
22
This page took 0.05976 seconds and 6 git commands to generate.