# # Copyright (c) 1994, The University of Utah and # the Computer Systems Laboratory at the University of Utah (CSL). # # Permission to use, copy, modify and distribute this software is hereby # granted provided that (1) source code retains these copyright, permission, # and disclaimer notices, and (2) redistributions including binaries # reproduce the notices in supporting documentation, and (3) all advertising # materials mentioning features or use of this software display the following # acknowledgement: ``This product includes software developed by the Computer # Systems Laboratory at the University of Utah.'' # # THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS # IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF # ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. # # CSL requests users of this software to return to csl-dist@cs.utah.edu any # improvements that they make and grant CSL redistribution rights. # # HISTORY # $Log: $ # #### Start of configuration section #### SRCDIR = @top_srcdir@ OBJDIR = @top_objdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ include $(OBJDIR)/conf/Makeconf ##### End of configuration section ##### GEN_HFILES += sys/syscall.h NOINSTALL = sys/syscall.h HFILES := $(foreach dir,. sys $(TARGET_MACHINE), \ $(addprefix $(dir)/, \ $(notdir $(wildcard $(SRCDIR)/include/$(dir)/*.h)))) HFILES += $(GEN_HFILES) all: machine $(GEN_HFILES) include $(SRCDIR)/conf/Makerules sys/syscall.h: $(SRCDIR)/server/kern/makesyscalls.sh \ $(SRCDIR)/server/kern/syscalls.master -rm -rf tmp sys libjacket libsys -mkdir tmp sys libjacket libsys cd tmp;/bin/sh $(SRCDIR)/server/kern/makesyscalls.sh \ $(SRCDIR)/server/kern/syscalls.master machine: rm -f $@ ln -s $(SRCDIR)/include/$(TARGET_MACHINE) $@ install: $(INSTALL_INCDIR)/machine $(addprefix $(INSTALL_INCDIR)/, \ $(filter-out $(NOINSTALL), $(HFILES))) $(INSTALL_INCDIR)/%.h: %.h $(MKDIR) $(patsubst %/,%,$(dir $@)) $(INSTALL) -m 644 $< $@ $(INSTALL_INCDIR)/%.h: $(SRCDIR)/include/%.h $(MKDIR) $(patsubst %/,%,$(dir $@)) $(INSTALL) -m 644 $< $@ $(INSTALL_INCDIR)/machine: $(MKDIR) $(patsubst %/,%,$(dir $@)) ln -s $(TARGET_MACHINE) $@