Newer
Older
Scratch / ubixos-home / src / tools / Makefile
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 863 bytes Scratch
# $Id: Makefile,v 1.2 2002/09/29 23:36:58 reddawg Exp $
# 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 ../sys/compile/ubix.elf ./)
	(./format 50 2000 ubix.elf userdb)
	(rm ubix.elf)