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