@@ -1,13 +1,14 @@
-CC=/opt/gnu/bin/gcc
+CC=/usr/bin/gcc
CFLAGS=-g -Werror -pthread -pedantic -pedantic-errors -fno-fast-math -fno-builtin -m64 -std=iso9899:1999 -I${PWD}
OUT=bin
OBJ=$(OUT)/obj
+OBJS=$(OBJ)/queue.o
-all: clean queue.o
- $(CC) $(CFLAGS) model.c $(OBJ)/queue.o -o $(OUT)/model
+all: $(OBJS)
+ $(CC) $(CFLAGS) model.c $(OBJS) -o $(OUT)/model
-queue.o:
+$(OBJ)/queue.o:
$(CC) $(CFLAGS) -c queue.c -o $(OBJ)/queue.o