Fix Makefile
This commit is contained in:
6
Makefile
6
Makefile
@ -31,10 +31,10 @@ bin/lib/%.o: src/lib/%.c
|
|||||||
bin/libsesimos.so: bin/lib/cache.o bin/lib/compress.o bin/lib/config.o bin/lib/fastcgi.o bin/lib/geoip.o \
|
bin/libsesimos.so: bin/lib/cache.o bin/lib/compress.o bin/lib/config.o bin/lib/fastcgi.o bin/lib/geoip.o \
|
||||||
bin/lib/http.o bin/lib/http_static.o bin/lib/rev_proxy.o bin/lib/sock.o bin/lib/uri.o \
|
bin/lib/http.o bin/lib/http_static.o bin/lib/rev_proxy.o bin/lib/sock.o bin/lib/uri.o \
|
||||||
bin/lib/utils.o bin/lib/websocket.o
|
bin/lib/utils.o bin/lib/websocket.o
|
||||||
$(CC) -o $@ --shared -fPIC $(CFLAGS) $(LIBS) $^
|
$(CC) -o $@ --shared -fPIC $(CFLAGS) $^ $(LIBS)
|
||||||
|
|
||||||
bin/sesimos: bin/server.o bin/client.o
|
bin/sesimos: bin/server.o bin/client.o
|
||||||
$(CC) -o $@ $^ $(LIBS) -Lbin -lsesimos -Wl,-rpath=$(shell pwd)/bin
|
$(CC) -o $@ $^ $(CFLAGS) -Lbin -lsesimos -Wl,-rpath=$(shell pwd)/bin $(LIBS)
|
||||||
|
|
||||||
|
|
||||||
bin/server.o: src/server.c src/server.h src/defs.h src/client.h src/lib/cache.h src/lib/config.h src/lib/sock.h \
|
bin/server.o: src/server.c src/server.h src/defs.h src/client.h src/lib/cache.h src/lib/config.h src/lib/sock.h \
|
||||||
@ -72,4 +72,4 @@ permit:
|
|||||||
sudo setcap 'cap_net_bind_service=+ep' "$(shell pwd)/bin/sesimos"
|
sudo setcap 'cap_net_bind_service=+ep' "$(shell pwd)/bin/sesimos"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf sesimos bin/*
|
rm -rf bin/*
|
||||||
|
Reference in New Issue
Block a user