Commit 022a2c80 by Chloe Dequeker

Modif makefile to go in subdir src/

parent 1289b065
File deleted
...@@ -2,14 +2,22 @@ CC=gcc ...@@ -2,14 +2,22 @@ CC=gcc
CFLAGS=-c -Wall -g -O3 CFLAGS=-c -Wall -g -O3
LDFLAGS=-lm LDFLAGS=-lm
SRC_DIR=src SRC_DIR=src
<<<<<<< HEAD
SOURCES=$(shell find $(SRC_DIR) -name '*.c') SOURCES=$(shell find $(SRC_DIR) -name '*.c')
=======
SOURCES=$(shell find $(SRC_DIR) -name "*.c")
>>>>>>> Modif makefile to go in subdir src/
OBJECTS=$(SOURCES:.c=.o) OBJECTS=$(SOURCES:.c=.o)
BINARY=INTBuilder BINARY=INTBuilder
all: $(BINARY) all: $(BINARY)
$(BINARY): $(OBJECTS) $(BINARY): $(OBJECTS)
<<<<<<< HEAD
$(CC) $^ -o $@ $(LDFLAGS) $(CC) $^ -o $@ $(LDFLAGS)
=======
$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
>>>>>>> Modif makefile to go in subdir src/
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) $< -o $@ $(CC) $(CFLAGS) $< -o $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment