File: Makefile

package info (click to toggle)
since 1.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 384 kB
  • sloc: ansic: 7,220; makefile: 43; sh: 30
file content (25 lines) | stat: -rw-r--r-- 601 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
# IMHO auto{make,conf} is overkill. Simple, readable makefiles improve security

prefix=/usr/local
NAME = since
VERSION = 1.1

CFLAGS += -DVERSION=\"$(VERSION)\"
# disable/enable as desired 
CFLAGS += $(shell test -f /usr/include/sys/inotify.h && echo -DUSE_INOTIFY)
CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
#CFLAGS += -DDEBUG

CC ?= gcc
RM = rm -f
INSTALL = install -D

$(NAME): $(NAME).c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^

install: $(NAME)
	$(INSTALL) $(NAME) $(prefix)/bin/$(NAME)
	$(INSTALL) $(NAME).1 $(prefix)/share/man/man1/$(NAME).1

clean: 
	$(RM) $(NAME) core *.o