Newer
Older
ubixos / bin / ls / Makefile
@Charlie Root Charlie Root on 2 Jan 2018 926 bytes Fixed crt1
# $Id: Makefile 115 2016-01-14 02:55:19Z reddawg $
# Application Makefile (C) 2002-2004 The UbixOS Project

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

#Linker
LD = ld

#Binary File Name
BINARY = ls

#Delete Program
REMOVE = rm -f

#Objects
OBJS = main.o

#LIBRARIES = ../../build/lib/libc_old.so

# Link The Binary
$(BINARY) : $(OBJS)
	$(CC) $(CFLAGS) -o ${BUILD_DIR}/bin/$@ $(STARTUP) $(LIBRARIES) $(OBJS)
	#strip $(BINARY)

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

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

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