9
0
Fork 0

Fix build on Ubuntu

Linked libraries supposed to come _after_ the objects which uses
functions from them.
This commit is contained in:
Max 2016-06-30 12:58:49 +02:00
parent 1e5454467e
commit cfaf968a17
1 changed files with 2 additions and 2 deletions

View File

@ -6,10 +6,10 @@ OBJS = auc.o db.o db_auc.o db_hlr.o logging.o
all: db_test hlr
db_test: db_test.o rand_fake.o $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^
$(CC) -o $@ $^ $(LDFLAGS)
hlr: hlr.o gsup_server.o gsup_router.o rand_urandom.o $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $^