d0ad137f40501f7136356751d9b61bf8475eee62
[overhosts.git] / makefile
1 #
2 #  Project overhosts
3 #
4
5 VER=0.0.1
6 EXE=overhosts.so test
7 OBJ=overhosts.o
8 PKGNAME=overhosts
9 TARGET=$(EXE)
10
11 CC=gcc
12
13 ALL: $(TARGET)
14
15 overhosts.so: overhosts.c overhosts.h
16         $(CC) -Wall -fPIC -shared -ldl -o $@ $<
17
18 test: test.c
19         $(CC) -Wall -g -ggdb -o $@ $<
20
21 clean:
22         rm -f $(EXE) $(OBJ) *~ $(TARGET)
23
24 pkg:
25         tar -zcv --transform="s,^,$(PKGNAME)-$(VER)/,"  -f ../$(PKGNAME)_$(VER).tgz *
26
27 .PHONY: clean pkg ALL