File: Makefile

package info (click to toggle)
dav-text 0.9.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 252 kB
  • sloc: ansic: 2,895; makefile: 27; sh: 10
file content (28 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (5)
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
prefix=/usr/local
CC=gcc
OBJECTS=main.o \
        buffers.o \
        fileIO.o \
        screenIO.o \
        keyboard.o \
        features.o \
        undo.o \
        move.o
        
CFLAGS+=-D_FORTIFY_SOURCE=2 -g -Wall -Wextra -Wpointer-arith -Wuninitialized -Wshadow -Winit-self -Wmissing-declarations -Wformat -Wformat-security -Werror=format-security
LDFLAGS+=-lncurses -z now

dav: $(OBJECTS) 
	$(CC) $(CFLAGS) $(CPPFLAGS) $(OBJECTS) $(LDFLAGS) -o dav

install:
	install -D dav $(DESTDIR)$(prefix)/bin/dav
	mkdir -p $(DESTDIR)$(prefix)/share/man/man1
	install -D dav.1.gz $(DESTDIR)$(prefix)/share/man/man1/

uninstall:
	rm $(DESTDIR)$(prefix)/bin/dav
	rm $(DESTDIR)$(prefix)/share/man/man1/dav.1.gz

clean:
	-rm -rf dav core *.o tags