summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6fc9b11044f9e8586acfc37013c605c6b45931c8 (plain) (blame)
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
30
31
32
33
34
35
36
37
CC = /usr/bin/gcc
LIBS = -lncurses
INCLUDES = -I/usr/include/ncurses -I.
OPTS = -DKBUILD_NO_NLS -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2

all:  zconf.tab.o conf.o mconf.o lxdialog_checklist.o lxdialog_util.o lxdialog_inputbox.o lxdialog_textbox.o lxdialog_yesno.o lxdialog_menubox.o 
	${CC} ${OPTS} ${INCLUDES} ${LIBS} mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o -o mconf

zconf.tab.o:
	${CC} ${OPTS} ${INCLUDES} -c zconf.tab.c -o zconf.tab.o 

conf.o: 
	${CC} ${OPTS} ${INCLUDES} -c conf.c -o conf.o 

mconf.o:
	${CC} ${OPTS} ${INCLUDES} -c mconf.c -o mconf.o 

lxdialog_checklist.o:
	${CC} ${OPTS} ${INCLUDES} -c lxdialog/checklist.c -o lxdialog/checklist.o 

lxdialog_util.o:
	${CC} ${OPTS} ${INCLUDES} -c lxdialog/util.c -o lxdialog/util.o 

lxdialog_inputbox.o:
	${CC} ${OPTS} ${INCLUDES} -c lxdialog/inputbox.c -o lxdialog/inputbox.o 

lxdialog_textbox.o:
	${CC} ${OPTS} ${INCLUDES} -c lxdialog/textbox.c -o lxdialog/textbox.o 

lxdialog_yesno.o:
	${CC} ${OPTS} ${INCLUDES} -c lxdialog/yesno.c -o lxdialog/yesno.o 

lxdialog_menubox.o:
	${CC} ${OPTS} ${INCLUDES} -c lxdialog/menubox.c -o lxdialog/menubox.o 

clean:
	rm mconf *.o lxdialog/*.o