From d941945543dfd412813ea68dcab70fe57b8b8273 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 15 Jul 2014 18:18:37 +0530 Subject: Makefile: fix order of arguments to gcc On Ubuntu, the order seems to matter. Iddo faced this problem. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fde12d0..c73b121 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,10 @@ SRC_OBJS := $(addprefix src/,debug/local-play.o lib.o encode.o) VPATH := debug %.o: %.c %.h - $(CC) -c $(CFLAGS) $(LIBS) $< -o $@ + $(CC) -c $< $(CFLAGS) $(LIBS) -o $@ $(SERVER_NAME): src/main.c $(SRC_OBJS) - $(CC) $(CFLAGS) $(LIBS) $^ -o $@ + $(CC) $^ $(CFLAGS) $(LIBS) -o $@ all: sst-server -- cgit v0.11.2-2-gd1dd