# "@(#)Makefile 7.5 AVS 92/06/15" # Copyright (c) 1992 by # Advanced Visual Systems Inc. # All Rights Reserved # # This software comprises unpublished confidential information of # Advanced Visual Systems Inc. and may not be used, copied or made # available to anyone, except in accordance with the license # under which it is furnished. # # This file is under sccs control at AVS in: # @europa/sccs1.p/avs/developer/examples/s.Makefile # # This include file is found in the standard AVS release and contains # platform specific flags and options needed in compiling ordinary # AVS modules and programs. ROOT is the main pathname to find the AVS # installed area. INC_FILE=$(ROOT)/usr/avs/include/Makeinclude include $(INC_FILE) AVS_LIBS = $(ROOT)/usr/avs/lib # List of buildable examples: # EX_APPS may be reduced by some platforms which don't support Motif or X11R4 EX_APPS= mouse_trap # Port includes are an optional list of directories in which to find # Motif and X11 include files if they are not in the standard locations PORT_INC= # Developer definitions are located in a platform specific include file # overriding libraries or include directories include Makelib.$(PORT) ###################################################################### # Generic library definitions and compiler flags AVS_INC = -I. -I$(ROOT)/usr/avs/include # # Optimize Flags #G= $(AOPTCFLAGS) # Debug Flags G= -g # CFLAGS=$(G) -D_MEM_DEFS_defined $(AVS_INC) $(PORT_INC) # ###################################################################### # Module libraries: needed for AVS modules (similar to /usr/avs/examples) BASELIBS=-lgeom -lutil -lm FLOWLIBS=-L$(AVS_LIBS) -lflow_c $(BASELIBS) $(LASTLIBS) CSIMLIBS=-L$(AVS_LIBS) -lsim_c $(BASELIBS) $(LASTLIBS) ###################################################################### # Example applications all: $(EX_APPS) app4_mod: app4_mod.o app4_menu.o app4_callb.o $(CC) $(CFLAGS) -o app4_mod app4_mod.o app4_menu.o \ app4_callb.o $(MLIBS) $(CSIMLIBS) mouse_trap: mouse_trap.o $(CC) $(CFLAGS) -o mouse_trap mouse_trap.o \ $(MLIBS) $(CSIMLIBS) .c.o: cc $(CFLAGS) $*.c -c clean: /bin/rm -f $(EX_APPS) *.o core