diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2016-12-26 14:41:02 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2016-12-26 15:03:34 +0100 |
commit | 2f19f2e85746eca309ae5e355e1ff860c62ec11d (patch) | |
tree | bbce4729436a9a346417559082abfcf42ca28556 /Makefile | |
parent | ed2b3a38ec05c566c645dc2aabfd513edff8d63b (diff) |
Compile on linux
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,10 +1,11 @@ CC = gcc -CFLAGS = -Wall -Wextra -std=c11 -fwrapv +CFLAGS = -Wall -Wextra -std=c11 -fwrapv -fPIC ifneq ($(DEBUG),) CFLAGS += -g else CFLAGS += -O2 endif +LDFLAGS = -ldl BIN = cserver PLUGINDIR = plugins @@ -24,7 +25,7 @@ remake: clean all $(BIN): $(patsubst %.c,%.o,$(wildcard *.c)) - $(CC) -o $@ $^ + $(CC) -o $@ $^ $(LDFLAGS) %.o: %.c $(wildcard $(dir %.o)*.h) $(CC) $(CFLAGS) -c -o $@ $< |