File: GNUmakefile

package info (click to toggle)
swirc 3.5.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,092 kB
  • sloc: cpp: 19,125; ansic: 18,465; sh: 1,012; python: 254; makefile: 108; javascript: 20
file content (29 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Makefile for the append log utility

CC ?= cc
CFLAGS = -O2\
	-Wall\
	-Wsign-compare\
	-Wstrict-prototypes\
	-pipe\
	-std=c11

# C preprocessor flags
CPPFLAGS = -D_BSD_SOURCE=1\
	-D_DEFAULT_SOURCE=1\
	-D_POSIX_C_SOURCE=200809L

RM = rm -f

TGTS = append-log

all: $(TGTS)

append-log: append-log.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $<

clean:
	$(RM) $(TGTS)
ifneq ("$(wildcard out)","")
	$(RM) -R out
endif