Makefile 290 B

1234567891011121314151617
  1. CC = gcc
  2. CFLAGS = -O3
  3. all: buffer_overflow null_pointer_assignment stack_overflow
  4. clean:
  5. rm -r release/objects
  6. %.o: src/%.c
  7. mkdir -p release/objects
  8. $(CC) $(CLAGS) -Ilib -c -o release/objects/$@ $<
  9. %: %.o
  10. mkdir -p release/exes
  11. $(CC) $(CLAGS) -o release/exes/$@ release/objects/$<