Makefile 234 B

123456789101112
  1. CC=gcc
  2. CFLAGS=-g -O2 -Wall -pedantic -std=gnu99 -Wno-unused -Werror
  3. all: parsetest
  4. parsetest: libuci.o test.o
  5. $(CC) $(CFLAGS) -o $@ $^
  6. libuci.o: libuci.c parse.c uci.h list.c err.h
  7. test.o: test.c uci.h
  8. clean:
  9. rm -f parsetest *.o