mirror of
https://github.com/Pixinn/gameoflife-appleii.git
synced 2024-07-04 19:29:42 +00:00
21 lines
345 B
Makefile
Executable File
21 lines
345 B
Makefile
Executable File
CC := cc
|
|
SRC := gol.c
|
|
CFLAGS := -Wall -Wextra -pedantic-errors -ansi -std=gnu99 -lncurses -lm
|
|
DFLAGS := -g -pg -O0
|
|
OUT := gol
|
|
|
|
all: std
|
|
|
|
std: $(SRC)
|
|
$(CC) -O3 -o $(OUT) $? $(CFLAGS) $(DFLAGS)
|
|
|
|
clean: $(SRC)
|
|
rm -f $(OUT) gmon.out
|
|
|
|
debug: $(SRC)
|
|
$(CC) $(CFLAGS) $(DFLAGS) -o $(OUT) $?
|
|
|
|
install: std
|
|
install $(OUT) $(INSTALL)
|
|
strip $(INSTALL)
|