File: Makefile.in

package info (click to toggle)
flin 0.5.1-9.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 276 kB
  • ctags: 164
  • sloc: ansic: 1,642; makefile: 105; sh: 71
file content (73 lines) | stat: -rw-r--r-- 1,682 bytes parent folder | download | duplicates (4)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73

# The program name
PROGNAME = @PROGNAME@

# Stuff we install
MANPAGE = flin.1
GPL = COPYING
HELP = system.help
MANUAL = Manual
FLINMENU = system.menu
FLINLOGIN = system.flinlogin
FLINRC = system.flinrc

# Directory to install everything to
prefix = @prefix@
EXEC_PREFIX = @exec_prefix@
BINDIR = $(EXEC_PREFIX)/bin
LIBDIR = $(prefix)/lib/flin
MANDIR = $(prefix)/man/man1

INSTALL = @INSTALL@
MKDIR = mkdir -p
BINFLAGS = -m 755 -s
MANFLAGS = -m 444

RM = rm -f

# C Compiler
CC = @CC@
#DEBUG = -DDEBUG -g
CPPFLAGS = -I. @DEFS@ -DPREFIX=\"@prefix@\"
CFLAGS = @CFLAGS@ $(CPPFLAGS) $(DEBUG)

LDFLAGS = @LDFLAGS@
LIBRARIES = @LIBS@

SCREEN = ncurses

SOURCES = main.c parse.c string.c misc.c menu.c exec.c additional.c screens/$(SCREEN).c
OBJECTS = main.o parse.o string.o misc.o menu.o exec.o additional.o screens/$(SCREEN).o

.c.o:
		$(CC) $(CFLAGS) -c -o $@ $<

$(PROGNAME):	$(OBJECTS)
		$(RM) $@
		$(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBRARIES)

install:
		$(INSTALL) $(BINFLAGS) $(PROGNAME) $(BINDIR)/$(PROGNAME)
		$(MKDIR) $(LIBDIR)
		$(INSTALL) $(MANFLAGS) $(GPL) $(LIBDIR)/GPL
		$(INSTALL) $(MANFLAGS) $(HELP) $(LIBDIR)/$(HELP)
		$(INSTALL) $(MANFLAGS) $(MANUAL) $(LIBDIR)/$(MANUAL)
		$(INSTALL) $(MANFLAGS) $(FLINLOGIN) $(LIBDIR)/$(FLINLOGIN)
		$(INSTALL) $(MANFLAGS) $(FLINRC) $(LIBDIR)/$(FLINRC)
		$(INSTALL) $(MANFLAGS) $(FLINMENU) $(LIBDIR)/$(FLINMENU)
		$(INSTALL) $(MANFLAGS) $(MANPAGE) $(MANDIR)/$(MANPAGE)

clean:		
		$(RM) $(PROGNAME) $(OBJECTS)

mrproper:	clean
		$(RM) configure config.cache config.status config.log config.h Makefile .depend

depend:		dep

dep:		
		$(CC) $(CPPFLAGS) -M $(SOURCES) > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif