home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
m
/
master12.zip
/
mastering
/
Newapp
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-08-19
|
2KB
|
77 lines
##############################################################################
#
# Makefile for the "newapp" program.
#
##############################################################################
# N O T E :
#
# This Makefile is for HP 9000 Series 300 workstations running HP-UX 7.0
# or later. You will likely have to modify some of the parameters in
# this file to compile this program on another platform.
#
# Newapp requires: X Window System, Release 4 and OSF/Motif, Version 1.1
##############################################################################
# This variable contains the flags passed to cc.
CFLAGS = -Wc,-Nd4000 -Wc,-Ns4000 -Wc,-Nt50000 -DSYSV -D_NO_PROTO
# This variable points to the directory containing the X and Motif libraries.
LIBDIR = /usr
# This variable lists the subdirectories to search for include files.
INCLUDES = -I$(LIBDIR)/include/Motif1.1\
-I$(LIBDIR)/include/X11R4
# This variable lists the required libraries.
LIBS = $(LIBDIR)/lib/Motif1.1/libXm.a\
$(LIBDIR)/lib/X11R4/libXt.a\
$(LIBDIR)/lib/X11R4/libX11.a\
-lPW\
-lm
# This variable lists the object files generated.
OBJS= DialogCB.o\
ExitDialog.o\
Main.o\
Menu.o\
MenuCB.o\
PrintOpt.o\
Protocols.o
# This variable lists the C source files required.
SOURCES=DialogCB.c\
ExitDialog.c\
Main.c\
Menu.c\
MenuCB.c\
PrintOpt.c\
Protocols.c
# This rule generates the object files.
.c.o:
cc $(INCLUDES) -c $(CFLAGS) $<
# This rule generates the executable using the object files and libraries.
newapp: $(OBJS)
cc $(CFLAGS) $(INCLUDES) -o newapp $(OBJS) $(LIBS)
# This rule sets up the default target ("make" is equivalent to "make newapp").
all: newapp
# This rule cleans up the build directory (type "make clean").
clean:
rm -f *.o core