Boilerplate for shared memory
This commit is contained in:
@@ -7,16 +7,17 @@
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
|
||||
LDFLAGS = -lrt -lpthread
|
||||
|
||||
.PHONY: all clean docs docs_clean
|
||||
|
||||
all: supervisor generator
|
||||
|
||||
supervisor: supervisor.o
|
||||
$(CC) $^ -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
|
||||
generator: generator.o
|
||||
$(CC) $^ -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
|
||||
%.o: %.c common.h
|
||||
$(CC) $(CFLAGS) $^
|
||||
|
||||
Reference in New Issue
Block a user