Annotation of othersrc/dist/cdk/demos/Makefile.in, revision 1.1.1.1
1.1 garbled 1: #
2: # Makefile for the examples directory.
3: #
4: SHELL = /bin/sh
5:
6: CC = @CC@
7: x = @PROG_EXT@
8:
9: prefix = @prefix@
10: exec_prefix = @exec_prefix@
11:
12: srcdir = @srcdir@
13: VPATH = $(srcdir)
14:
15: LIBS = -lcdk @LIBS@
16: LIBDIR = -L.. @LDFLAGS@
17:
18: CFLAGS = @CFLAGS@
19: EXTRA_CFLAGS = @EXTRA_CFLAGS@
20: CPPFLAGS = @DEFS@ @CPPFLAGS@ -I../include -I$(srcdir)/../include -I.
21:
22: BINS = \
23: fileview$x \
24: rolodex$x \
25: command$x \
26: clock$x \
27: stopSign$x \
28: appointment$x \
29: serial$x \
30: vinstall$x
31:
32: #
33: # If you have Sybase installed on your system, try making
34: # syb. It's a full screen interface to Sybase.
35: #
36: SYBROOT = $(SYBASE)
37: SYBINCDIR = -I$(SYBROOT)/include
38: SYBLIBDIR = -L$(SYBROOT)/devlib
39: SYBLIBS = -lnsl -lsybdb
40:
41: all : $(BINS)
42:
43: #
44: # Standard .c to .o compile line.
45: #
46: .c.o:
47: @RULE_CC@
48: @ECHO_CC@$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CPPFLAGS) -c $<
49: #
50: # Most of the examples are built from a single .c file using the same libraries
51: #
52: LINKIT = @ECHO_LD@$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CPPFLAGS) $@.o -o $@ $(LIBDIR) $(LIBS)
53:
54: # fileview - Basic file selector/file viewer combination.
55: fileview$x : fileview.o ; $(LINKIT)
56:
57: # rolodex - A fairly robust rolodex.
58: rolodex$x : rolodex.o ; $(LINKIT)
59:
60: # command - A basic command interface with command history.
61: command$x : command.o ; $(LINKIT)
62:
63: # clock - A simple little clock.
64: clock$x : clock.o ; $(LINKIT)
65:
66: # stopSign - A simple demo I wrote after a couple of pints. :)
67: stopSign$x : stopSign.o ; $(LINKIT)
68:
69: # appointment - A basic appointment book/date keeper.
70: appointment$x : appointment.o ; $(LINKIT)
71:
72: # serial - This probes the serial port.
73: serial$x : serial.o ; $(LINKIT)
74:
75: # keycheck - This prints out the keys ASCII and Octal values.
76: keycheck$x : keycheck.o ; $(LINKIT)
77:
78: # vinstall - CDK based installer.
79: vinstall$x : vinstall.o ; $(LINKIT)
80:
81: #
82: # A Sybase interface.
83: #
84: syb$x : syb.c
85: $(CC) $(CFLAGS) -o $@ $? $(CPPFLAGS) $(SYBINCDIR) $(LIBDIR) $(SYBLIBDIR) $(LIBS) $(SYBLIBS)
86:
87: #
88: # Standard clean directives.
89: #
90: clean::
91: -rm -f core *.o $(BINS)
92: distclean:: clean
93: -rm -f Makefile
CVSweb <webmaster@jp.NetBSD.org>