You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
325 B
20 lines
325 B
6 years ago
|
TRANS:=src/sipc.c
|
||
|
INCLUDE:=include/
|
||
|
CFLAGS:= -c -Wall -pedantic -fPIC -I$(INCLUDE)
|
||
|
|
||
|
all: clean libsipc test
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o
|
||
|
rm -f *.so
|
||
|
rm -f test
|
||
|
rm -f *.socket
|
||
|
|
||
|
libsipc:
|
||
|
gcc $(CFLAGS) $(TRANS)
|
||
|
gcc -shared -o $@.so *.o
|
||
|
|
||
|
test: libsipc
|
||
|
gcc -Wall -pedantic -I$(INCLUDE) -Wl,-rpath=./ src/test.c -o $@ -L./ -lsipc
|
||
|
./$@
|