Link libraries after object files

This commit is contained in:
Biryuzovye Kleshni 2018-06-25 05:12:52 +00:00
parent edcce1e647
commit 094cd2c2dd

View File

@ -1,8 +1,8 @@
CFLAGS += -std=gnu99 -Wall -Wextra -pedantic -O3 -fPIC
LDFLAGS += -shared -lpthread -lcrypto -Wl,-version-script=main.map -v
LDFLAGS += -shared -Wl,-version-script=main.map
libfastsolver.so: main.map common.o pthread.o
$(CC) $(LDFLAGS) -o $@ common.o pthread.o
$(CC) $(LDFLAGS) -o $@ common.o pthread.o -lpthread -lcrypto
common.o: common.h common.c
pthread.o: common.h pthread.c