Makefile 479 B

12345678910111213141516
  1. CC=gcc
  2. WARNINGS := -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align \
  3. -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations \
  4. -Wredundant-decls -Wnested-externs -Winline -Wno-long-long \
  5. -Wuninitialized -Wconversion -Wstrict-prototypes
  6. CFLAGS := -g -std=c99 $(WARNINGS)
  7. OBJ = posix_lock.o other.o LeaHeader.o sys_alloc.o dmm_init.o test.o
  8. %.o: %.c
  9. $(CC) -c -o $@ $< $(CFLAGS)
  10. test: $(OBJ)
  11. gcc -pthread -o $@ $^ $(CFLAGS)