~smlavine/ascii-breakout

ref: 60944e7649d64f8a4487c3698d3e76c56f5037b7 ascii-breakout/Makefile -rw-r--r-- 465 bytes
60944e76Alexey Yerin Improve Makefile 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CC = cc
CFLAGS = -std=c99 -D_POSIX_C_SOURCE=200809L
WARN = -Wall -Wextra -Wpedantic -Werror=implicit-function-declaration

PREFIX = /usr/local

SRC = main.c

all: ascii-breakout

ascii-breakout: $(SRC) rogueutil.h
	$(CC) $(CFLAGS) $(WARN) -o $@ $(SRC)

clean:
	rm -f ascii-breakout

install: all
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp ascii-breakout $(DESTDIR)$(PREFIX)/bin

uninstall:
	rm $(DESTDIR)$(PREFIX)/bin/ascii-breakout

.PHONY: all clean install uninstall