Newer
Older
ubixfs / Makefile
@reddawg reddawg on 13 Aug 2004 772 bytes UbixFS: fixed the test shell
# $Id$
# Application Makefile (C) 2002-2004 The UbixOS Project

#Linker
LD = ld

#Binary File Name
BINARY = ubixfs

#Delete Program
REMOVE = rm -f

#Objects
OBJS = main.o vfs.o ramdrive.o ubixfs.o

#Includes
INCLUDES = -I./include

#CFLAGS

CFLAGS = -O

all: $(BINARY)

# Link The Binary
$(BINARY) : $(OBJS)
	$(CXX) $(CFLAGS) -o $@ $(OBJS)

# Compile the source files
.cpp.o:
	$(CXX)  -Wall $(CFLAGS) $(INCLUDES) -c -o $@ $<

.cc.o:
	$(CXX)  -Wall $(CFLAGS) $(INCLUDES) -c -o $@ $<

.cc.s:
	$(CXX)  -Wall $(CFLAGS) $(INCLUDES) -S -o $@ $<
 
.c.o:
	$(CC)  -Wall $(CFLAGS) $(INCLUDES) -c -o $@ $<
 
.c.s:
	$(CC)  -Wall $(CFLAGS) $(INCLUDES) -S -o $@ $<
 
.S.o:
	$(CC)  -Wall $(CLFAGS) $(INCLUDES) -c -o $@ $<
 
# Clean Up The junk
clean:
	$(REMOVE) $(OBJS) $(BINARY) *.core