Makefile 459 B

12345678910111213141516171819
  1. CFLAGS = -ansi -pedantic -Wall -Wextra -Wno-pragmas -I../../src -g -DDEBUG=1
  2. all: libmeg4 runner
  3. libmeg4:
  4. @make -C ../../src all DEBUG=1 NOLUA=$(NOLUA) NOEDITORS=$(NOEDITORS)
  5. main.o: main.c
  6. $(CC) $(CFLAGS) -c -o main.o main.c
  7. runner: ../../src/libmeg4.a main.o
  8. $(CC) $(LDFLAGS) main.o ../../src/libmeg4.a -o runner -lm
  9. clean:
  10. @rm runner *.o 2>/dev/null || true
  11. distclean: clean
  12. @make --no-print-directory -C ../../src distclean 2>/dev/null || true