CC = gcc SIMI = SI SRCS = headers.c OBJS = $(SRCS:.c=.o) lex.yy.o DEFINES = INCLUDES = LOCAL_LIBRARIES = -ll CURRCPU = `get-cpu` AllTarget(run-exec) run-exec: $(OBJS) $(CC) -o $@ $(OBJS) -ll /* $(CC) -static -o $@ $(OBJS) -ll*/ headers.o: headers.c headers.h lex.yy.o: lex.yy.c headers.h lex.yy.c: lex.l lex lex.l clean:: $(RM) *.o AllTarget(install) install:: if [ ! -d $(TOP)/bin/util/headers ]; then mkdir $(TOP)/bin/util/headers; fi chgrp demsys $(TOP)/bin/util/headers chmod 755 $(TOP)/bin/util/headers if [ ! -d $(TOP)/bin/util/headers/`get-cpu` ]; then mkdir $(TOP)/bin/util/headers/`get-cpu`; fi chgrp demsys $(TOP)/bin/util/headers/`get-cpu` chmod 755 $(TOP)/bin/util/headers/`get-cpu` $(RM) -rf $(TOP)/bin/util/headers/`get-cpu`/run-exec $(INSTALL) -g demsys -m 755 -s -c run-exec $(TOP)/bin/util/headers/`get-cpu` DependTarget()