Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CFLAGS=-static -Wall -g -I/usr/local/uriparser/include/uriparser -I./vendor/buffer/src
LDFLAGS=-L/usr/local/uriparser/lib -luriparser -L./vendor/buffer/build -lbuffer
CFLAGS=-static -Wall -g -I/usr/local/include/uriparser/ -I./vendor/buffer/src
LDFLAGS=-L/usr/local/lib/ -L./vendor/buffer/build -lbuffer -luriparser

SOURCES=$(wildcard src/**/*.c src/*.c)
OBJECTS=$(patsubst %.c,%.o,$(SOURCES))
Expand All @@ -9,7 +9,7 @@ TARGET=bin/http
all: $(TARGET)

$(TARGET): build $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) -o $@

build:
@mkdir -p bin
Expand All @@ -18,4 +18,4 @@ dev:CFLAGS+=-DNDEBUG
dev: all

clean:
rm -rf bin/http src/*.o *.dSYM
rm -rf bin/http src/*.o *.dSYM