Files
AwesomePolytech/OSs/lab5/part-A/Makefile

13 lines
147 B
Makefile

targets = main
all: $(targets)
main: main.o
$(CC) -o $@ $^ $(CFLAGS)
%.o: %.c
$(CC) -c $^ -o $@ $(CFLAGS)
clean:
rm -f $(targets)
rm -f *.o