aboutsummaryrefslogtreecommitdiff
blob: 543f2b1b909f78642640096b8b2e104fd823bdf4 (plain)
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
FLAGS = $$(pkg-config --cflags glib-2.0) -W -Wall -Wno-pointer-sign -g $(CFLAGS)
CC = gcc

all: conf-update

config.o: config.c conf-update.h
	$(CC) $(FLAGS) -c config.c
core.o: core.c conf-update.h
	$(CC) $(FLAGS) -c core.c
helpers.o: helpers.c conf-update.h
	$(CC) $(FLAGS) -c helpers.c
conf-update.o: conf-update.c conf-update.h
	$(CC) $(FLAGS) -c conf-update.c
index.o: index.c conf-update.h
	$(CC) $(FLAGS) -c index.c
modified.o: conf-update.h modified.c
	$(CC) $(FLAGS) -c modified.c

conf-update.h: core.h helpers.h index.h modified.h config.h

conf-update: core.o helpers.o conf-update.o index.o modified.o config.o
	$(CC) $(LDFLAGS) -o conf-update config.o core.o helpers.o conf-update.o index.o modified.o $$(pkg-config --libs glib-2.0) -lncurses -lmenu -lcrypto

.PHONY: clean

clean:
	rm -f *.o
	rm -f conf-update