# $Id$ # Kernel Makefile (C) 2002 The UbixOS Project #Compiler GCC = gcc G++ = gcc #Linker LD = ld #Kernel File Name BINARY = format #Delete Program REMOVE = rm -f #Objects OBJS = format.o # Link the kernel statically with fixed text+data address @1M $(BINARY) : $(OBJS) $(GCC) -o $@ $(OBJS) # Compile the source files .cc.o: $(G++) -Wall -fomit-frame-pointer -O -I../sys/include -c -o $@ $< .cc.s: $(G++) -Wall -fomit-frame-pointer -O -I../sys/include -S -o $@ $< .c.o: $(GCC) -Wall -O -c -o $@ $< .c.s: $(GCC) -Wall -fomit-frame-pointer -O -I../sys/include -S -o $@ $< .S.o: $(GCC) -Wall -fomit-frame-pointer -c -o $@ $< # Clean up the junk clean: $(REMOVE) $(OBJS) $(BINARY) *.core format-dsk: (cp ../bin/init/init ./) (cp ../bin/shell/shell ./) (cp ../bin/test/test ./) (cp ../bin/ls/ls ./) (cp ../bin/pwd/pwd ./) (cp ../bin/login/login ./) (./format 257 2000 init shell test ls pwd userdb login) (rm init) (rm shell) (rm test) (rm ls) (rm pwd) (rm login)