# $Id$
# The System Makefile (C) 2002 The UbixOS Project
# Include Global 'Source' Options
include ../../../Makefile.inc
include ../../Makefile.inc
#Objects
OBJS = _Exit.o abort.o abs.o atexit.o atof.o atoi.o atol.o atoll.o bsearch.o calloc.o div.o exit.o getenv.o getopt.o getopt_long.o getsubopt.o grantpt.o hcreate.o heapsort.o imaxabs.o imaxdiv.o insque.o labs.o ldiv.o llabs.o lldiv.o lsearch.o malloc.o merge.o putenv.o qsort.o qsort_r.o radixsort.o rand.o random.o reallocf.o realpath.o remque.o setenv.o strfmon.o strtoimax.o strtol.o strtoll.o strtoq.o strtoul.o strtoull.o strtoumax.o strtouq.o system.o tdelete.o tfind.o tsearch.o twalk.o
#Output
OUTPUT = libc.so
$(OUTPUT): $(OBJS)
# Compile the source files
.cc.o:
$(CXX) -Wall ${CFLAGS} -nostdinc -O -I../include -c -o $@ $<
.cc.s:
$(CXX) -Wall ${CFLAGS} -nostdinc -O -I../include -S -o $@ $<
.c.o:
$(CC) -Wall ${CFLAGS} -nostdinc -O -I../include -I../../../include -c $<
.c.s:
$(CC) -Wall ${CFLAGS} -nostdinc -O -I../include -S -o $@ $<
.S.o:
$(CC) -Wall ${CFLAGS} -nostdinc -c -o $@ $<
# Clean up the junk
clean:
$(REMOVE) $(OBJS) $(OUTPUT)