File: Makefile

package info (click to toggle)
libcdk 4.9.9-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,876 kB
  • ctags: 2,249
  • sloc: ansic: 28,664; sh: 6,966; makefile: 211; cpp: 42
file content (113 lines) | stat: -rw-r--r-- 2,447 bytes parent folder | download | duplicates (2)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Generated automatically from Makefile.in by configure.
#
# Makefile for the examples directory.
#
CC	= insure
LIBS	= -lcdk -lncurses -lm  -lncurses
CFLAGS	= -g -O2 -Wall -DHAVE_CHTYPE=1 -DHAVE_LIBNCURSES=1  -DHAVE_LIBM=1 -DHAVE_LIBNCURSES=1 -DHAVE_COLOR=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_GETCWD=1 -DHAVE_MKTIME=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1 
INCDIR	= -I../include -I.. -I. 
LIBDIR	= -L..  -L/usr/lib/
BINS	= fileview rolodex command clock stopSign \
		appointment serial vinstall

#
# If you have Sybase installed on your system, try making
# syb. It's a full screen interface to Sybase.
#
SYBROOT		= $(SYBASE)
SYBINCDIR	= -I$(SYBROOT)/include
SYBLIBDIR	= -L$(SYBROOT)/devlib
SYBLIBS		= -lnsl -lsybdb

#
# Default compile option is stripped.
#
default: stripped

#
# Strip each of the binaries then strip them.
#
stripped:: $(BINS) stripBinaries

#
# Unstripped option for those who want it.
#
unstripped:: $(BINS)

#
# Strip all the binaries.
#
stripBinaries::
	@for i in $(BINS); do \
	   printf "Stripping %s ... " $$i; \
	   strip $$i; \
	   printf "Done.\n"; \
	done

#
# Basic file selector/file viewer combination.
#
fileview: fileview.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# A fairly robust rolodex.
#
rolodex: rolodex.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# A basic command interface with command history.
#
command: command.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# A simple little clock.
#
clock: clock.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# A simple demo I wrote after a couple of pints. :)
#
stopSign: stopSign.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# A basic appointment book/date keeper.
#
appointment: appointment.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# This probes the serial port.
#
serial: serial.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# This prints out the keys ASCII and Octal values.
#
keycheck: keycheck.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# CDK based installer.
#
vinstall: vinstall.c
	$(CC) $(CFLAGS) $(INCDIR) $? -o $@ $(LIBDIR) $(LIBS)

#
# A Sybase interface.
#
syb: syb.c
	$(CC) $(CFLAGS) -o $@ $? $(INCDIR) $(SYBINCDIR) $(LIBDIR) $(SYBLIBDIR) $(LIBS) $(SYBLIBS)

#
# Standard clean directives.
#
clean::
	$(RM) core *.o $(BINS)
distclean:: clean
	$(RM) Makefile