feedback-arc-set/Makefile
2018-05-27 17:20:52 +02:00

26 lines
790 B
Makefile

#--------------------------------------------------------------------#
# @date 2018-05-21 #
# #
# Feedback Arc Set: An algorithm which removes cycles in a directed #
# graph by removing the least amount of edges possible. #
#--------------------------------------------------------------------#
CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
.PHONY: all clean
all: supervisor generator
supervisor: supervisor.o
$(CC) $^ -o $@
generator: generator.o
$(CC) $^ -o $@
%.o: %.c common.h
$(CC) $(CFLAGS) $^
clean:
rm -f supervisor.o supervisor generator.o generator common.h.gch