Newer
Older
Scratch / lockwasher / src / lib / libc / stdlib / Makefile
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 732 bytes Scratch
# $Id: Makefile,v 1.2 2003/04/02 20:27:47 reddawg Exp $
# The System Makefile (C) 2002 The UbixOS Project


#Compiler
GCC = gcc
G++ = gcc

CFLAGS = -fno-builtin

#Linker
LD = ld -Bshareable
AR = ar

#Delete Program
REMOVE = rm -f

#Objects
OBJS = abs.o exit.o malloc.o
#Output
OUTPUT = libc.so

$(OUTPUT): $(OBJS)

# Compile the source files
.cc.o:
	$(G++)  -Wall ${CFLAGS} -nostdinc -O -I../include -c -o $@ $<
 
.cc.s:
	$(G++)  -Wall ${CFLAGS} -nostdinc -O -I../include -S -o $@ $<
 
.c.o:
	$(GCC)  -Wall ${CFLAGS} -nostdinc -O -I../include -c $<

.c.s:
	$(GCC)  -Wall ${CFLAGS} -nostdinc -O -I../include -S -o $@ $<
 
.S.o:
	$(GCC)  -Wall ${CFLAGS} -nostdinc -c -o $@ $<
 
# Clean up the junk
clean:
	$(REMOVE) $(OBJS) $(OUTPUT)