aboutsummaryrefslogtreecommitdiffstats
path: root/shells/flash/files/patch-aa
blob: a2bce4960dc8b1b541fd6ff7e3bb77e2c2569100 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- Makefile.in Mon Jun 28 11:28:50 1999
+++ Makefile.in.new Sun Jan  2 21:49:48 2000
@@ -7,9 +7,8 @@
 INITIALMENU = system.menu
 
 # Directory to install everything to
-prefix = /usr/slocal
 EXEC_PREFIX = ${prefix}
-BINDIR = $(EXEC_PREFIX)/bin
+BINDIR = $(EXEC_PREFIX)/sbin
 LIBDIR = $(prefix)/lib/flash
 MANDIR = $(prefix)/man/man1
 
@@ -23,29 +22,38 @@
 TAR = tar
 TAROPTIONS = zcvf
 RELNAME = $(PROGNAME).tar.gz
+NCURSES ?=
+NC_CFLAGS ?=
+NC_LFLAGS ?=
 
 # C Compiler
 CC = gcc
 DEBUG  = -g
 #DEBUG = -DDEBUG -g
 #CPPFLAGS = -I/usr/include/ncurses -DHAVE_CONFIG_H -DPREFIX=\"/usr/slocal\" #-DDEBUG
-CPPFLAGS = -DHAVE_CONFIG_H -DPREFIX=\"/usr/slocal\" -DDONT_HIGHLIGHT_WITH_REVERSE #-DLITTLE_ENDIAN 
+CPPFLAGS = $(NCURSES) $(NC_CFLAGS) -DHAVE_CONFIG_H -DPREFIX=\"$(prefix)\" -DDONT_HIGHLIGHT_WITH_REVERSE #-DLITTLE_ENDIAN 
 CFLAGS = -O2 $(CPPFLAGS) $(DEBUG) -Wall -rdynamic
 
-LDFLAGS = -rdynamic
-LIBRARIES = -lncurses -ldl
+LDFLAGS = -rdynamic $(NC_LFLAGS)
+LIBRARIES = -lncurses
 
 SCREEN_SOURCES = screens/nc_init.c screens/nc_lock.c screens/nc_about.c screens/nc_menus.c screens/nc_misc.c screens/nc_job.c screens/nc_module.c
 
+MODULE_PROGS = modules/countdown modules/background
 SOURCES = main.c parse.c string.c set.c misc.c menu.c exec.c rc.c tree.c parseline.c event.c sha.c module.c debug.c $(SCREEN_SOURCES)
 OBJECTS = $(SOURCES:.c=.o)
 
+all: $(PROGNAME)
+
 .c.o:
        $(CC) $(CFLAGS) -c -o $@ $<
 
-$(PROGNAME):   $(OBJECTS)
+$(PROGNAME):   $(OBJECTS) $(MODULE_PROGS)
        $(RM) $@
        $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBRARIES)
+
+$(MODULE_PROGS):
+       $(MAKE) -C modules && $(MAKE)
 
 shacrypt:  
        $(CC) $(CFLAGS) -DO_WRAP -o $@ sha.c