Boilerplate for shared memory

This commit is contained in:
zenon
2018-05-30 17:10:53 +02:00
parent 93303f19e1
commit 9ac6d9fbfe
2 changed files with 11 additions and 3 deletions
+3 -2
View File
@@ -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) $^