Newer
Older
ubixos / src / bin / launcher / Makefile
@reddawg reddawg on 15 Apr 2004 1 KB UbixOS v1.0
# $Id$
# Application Makefile (C) 2002 The UbixOS Project

# Include Global 'Source' Options
include ../../Makefile.inc
include ../Makefile.inc

#Compiler Flags
CFLAGS = -DNOBOOL -fno-builtin -fno-rtti -fno-exceptions

#Linker
LD = ld

#Binary File Name
BINARY = launcher

#Delete Program
REMOVE = rm -f

#Objects
OBJS = launcher.o

#Libraries
LIBRARIES2 = ../../lib/objgfx40/*.o ../../lib/libcpp/*.o ../../lib/views/sunlight/*.o

#Include
INCLUDE = -I../../lib/libc/include -I../../lib/libcpp/include -I../../lib/objgfx40

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

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

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