File: Makefile

package info (click to toggle)
gettyps 2.0.7j-9
  • links: PTS
  • area: non-free
  • in suites: potato, woody
  • size: 364 kB
  • ctags: 285
  • sloc: ansic: 2,644; makefile: 75; sh: 3
file content (68 lines) | stat: -rw-r--r-- 1,322 bytes parent folder | download | duplicates (3)
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
# Makefile for getty 2.0.7 distribution
#

#
# FSSTND Compliance:
#   If you want getty_ps to comply with the upcoming FSSTND document,
#   uncomment the following line.  As a result, all config files will
#   be expected in /etc/conf.* rather than /etc/default, modem locks 
#   will be created in /var/lock, and binaries will go in /sbin.
# 
# FSSTND=-DFSSTND

SHELL=	/bin/sh
CC=	gcc

#CFLAGS=	-g -fpcc-struct-return ${FSSTND}
#LFLAGS=	-g

LIBS=	-lncurses
LLIBS=	

# where things go
BIN=    $(DESTDIR)/sbin
UUBIN=  $(DESTDIR)/sbin

# what are we making
SRC=	main.c funcs.c defaults.c table.c
OBJ=	main.o funcs.o defaults.o table.o
UUSRC=	uufuncs.c main.c funcs.c defaults.c table.c
UUOBJ=	uufuncs.o uumain.o funcs.o defaults.o table.o

# rules

all:	getty uugetty

getty:	$(OBJ)
	$(CC) $(LFLAGS) -o $@ $(OBJ) $(LIBS) 

uugetty: $(UUOBJ)
	$(CC) $(LFLAGS) -o $@ $(UUOBJ) $(LIBS) 

test: getty
	-mv $(BIN)/testgetty $(BIN)/testgetty-
	mv getty $(BIN)/testgetty

install:
	install getty $(BIN)
	install uugetty $(UUBIN)

clean:
	rm -f *.o core *.out *~ .depend Make.Log Makefile.old

clobber: clean
	rm -f getty uugetty

realclean: clobber

depend:	
	gcc -M *.c > .depend

uumain.o:	main.c
	$(CC) $(CFLAGS) -DUUGETTY -c main.c -o uumain.o


# include dependency file
ifeq (.depend,$(wildcard .depend))
include .depend
endif