-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (16 loc) · 744 Bytes
/
Makefile
File metadata and controls
22 lines (16 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
LDLIBS := $(LDLIBS) -ldialog $(shell pkg-config --libs ncursesw menuw) -lm -lrt
LDFLAGS := $(LDFLAGS) -pthread
CFLAGS := $(CFLAGS) -std=gnu99 -pthread -D_GNU_SOURCE -I./ -I./cui/ -I./libdevcheck/ -I/usr/include/dialog $(shell pkg-config --cflags ncursesw menuw)
DEBUG_CFLAGS := -g3 -ggdb3 -O0
INSTALL ?= install
DESTDIR ?= /usr/local
source_files := $(wildcard *.c) $(wildcard cui/*.c) $(wildcard libdevcheck/*.c)
whdd: version.h $(source_files) Makefile
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(source_files) $(LDLIBS)
whdd_g: version.h ${source_files} Makefile
${CC} ${CFLAGS} ${DEBUG_CFLAGS} ${LDFLAGS} -o $@ ${source_files} ${LDLIBS}
version.h: FORCE
./version.sh . version.h
install: whdd
$(INSTALL) -D whdd $(DESTDIR)/bin/whdd
FORCE: