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