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