Newer
Older
ubix / src / bin / shell / Makefile
@reddawg reddawg on 24 Aug 2002 961 bytes Updates Update Updates
# $Id$
# Application Makefile (C) 2002 The UbixOS Project


#Compiler
GCC = gcc
G++ = gcc

#Compiler Flags
CFLAGS = -I../../lib/libc/include -fno-builtin

#Linker
LD = ld

#Binary File Name
BINARY = shell

#Delete Program
REMOVE = rm -f

#Objects
OBJS = main.o error.o commands.o exec.o input.o

#Libraries
LIBRARIES = ../../lib/libc/stdio/*.o ../../lib/libc/stdlib/*.o ../../lib/libc/sys/*.o ../../lib/libc/string/*.o

#Startup File
STARTUP = ../../lib/ubix/startup.o

# Link The Binary
$(BINARY) : $(OBJS)
	$(GCC) -nostdlib -o $@ $(STARTUP) $(LIBRARIES) $(OBJS)

# Compile the source files
.cc.o:
	$(G++)  -Wall -fomit-frame-pointer -O $(CFLAGS) -c -o $@ $<
 
.cc.s:
	$(G++)  -Wall -fomit-frame-pointer -O $(CFLAGS) -S -o $@ $<
 
.c.o:
	$(GCC)  -Wall -O $(CFLAGS) -c -o $@ $<
 
.c.s:
	$(GCC)  -Wall -fomit-frame-pointer -O $(CFLAGS) -S -o $@ $<
 
.S.o:
	$(GCC)  -Wall -fomit-frame-pointer -c -o $@ $<
 
# Clean Up The junk
clean:
	$(REMOVE) $(OBJS) $(BINARY)