# Generated automatically from Makefile.in by configure. # $Id: Makefile.in,v 1.16 2008/10/30 23:34:56 tom Exp $ # # Makefile for the examples directory. # SHELL = /bin/sh prefix = /usr exec_prefix = /usr srcdir = . CC = gcc RM = rm -f LIBS = -lcdk -lncurses LIBTOOL = LIBTOOL_CLEAN = LIBTOOL_LINK = ${CC} LINK = $(LIBTOOL_LINK) x = o = .o CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables CPPFLAGS = -DHAVE_CONFIG_H -I../include -I$(srcdir)/../include -I. -D_GNU_SOURCE LDFLAGS = -L.. -L/lib BINS = \ fileview$x \ rolodex$x \ command$x \ clock$x \ stopSign$x \ appointment$x \ vinstall$x # this needs configure-script work: OTHER_BINS = \ serial$x # # 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 all : $(BINS) # # Standard .c to .o compile line. # .c.o: # compiling $(CC) $(CFLAGS) $(CPPFLAGS) -c $< # # Most of the examples are built from a single .c file using the same libraries # LINKIT = $(LINK) $(CFLAGS) $(CPPFLAGS) $? -o $@ $(LDFLAGS) $(LIBS) # fileview - Basic file selector/file viewer combination. fileview$x : fileview.o ; $(LINKIT) # rolodex - A fairly robust rolodex. rolodex$x : rolodex.o ; $(LINKIT) # command - A basic command interface with command history. command$x : command.o ; $(LINKIT) # clock - A simple little clock. clock$x : clock.o ; $(LINKIT) # stopSign - A simple demo I wrote after a couple of pints. :) stopSign$x : stopSign.o ; $(LINKIT) # appointment - A basic appointment book/date keeper. appointment$x : appointment.o ; $(LINKIT) # serial - This probes the serial port. serial$x : serial.o ; $(LINKIT) # keycheck - This prints out the keys ASCII and Octal values. keycheck$x : keycheck.o ; $(LINKIT) # vinstall - CDK based installer. vinstall$x : vinstall.o ; $(LINKIT) # # A Sybase interface. # syb$x : syb.c $(CC) $(CFLAGS) -o $@ $? $(CPPFLAGS) $(SYBINCDIR) $(LDFLAGS) $(SYBLIBDIR) $(LIBS) $(SYBLIBS) # # Standard clean directives. # clean:: -$(LIBTOOL_CLEAN) $(RM) *.o core $(BINS) $(OTHER_BINS) distclean:: clean -rm -f Makefile