# Makefile to copy files from Vaucher Simula directory # and create SIMWINDOWS LIBRARY # J. Vaucher (aout 97) SHELL = /sbin/sh # Files # ----- VAUCHER = /home/nil/vaucher/st/ SIM_FILES = utilities.sim containers.sim directory.sim wincore.sim \ windowtools.sim textutil.sim keyfile.sim unix.sim ATR_FILES = $(SIM_FILES:.sim=.atr) O_FILES = xinterface.o $(SIM_FILES:.sim=.o) bits.o SIM_O_FILES = $(SIM_FILES:.sim=.o) # Programs # -------- CPP = /usr/ccs/lib/cpp CPPx = /usr/ccs/lib/cpp SC = sim .SUFFIXES: .sim .o .atr .sim.o: ; sim -c $* .sim.atr: ; sim -c $* # Options # ------- CPP_OPTIONS = -C -P # Targets # ------- libsimtools.a: windowtools.sim $(O_FILES) rm -f libsimtools.a ar qv libsimtools.a $(O_FILES) ranlib libsimtools.a windowtools.atr windowtools.o: windowtools.sim \ wincore.atr wincore.atr wincore.o: wincore.sim \ containers.atr \ utilities.atr \ directory.atr containers.atr containers.o: containers.sim utilities.atr utilities.o: utilities.sim directory.atr directory.o: directory.sim # Automatic compilations # ---------------------- .SUFFIXES: .src .sim .src.sim: $(CPP) $(CPP_OPTIONS) $< $*.sim ; .c.o: cc -c -I/local/x11/include $< ; # Actions # ------- clean: rm -f $(O_FILES) containers.sim utilities.sim