Newer
Older
Scratch / lockwasher / src / lib / libcpp / Makefile
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 853 bytes Scratch
#  (C) 2002 The UbixOS Project
#  $Id: Makefile,v 1.1 2003/04/02 18:56:04 reddawg Exp $

CFLAGS = -fno-builtin

#  Compiler
CC = gcc
CPP = g++


#  Linker
LINKER = ld

#  Remove
REMOVE = rm -fr

#  Objects
OBJS = libcpp.o

#Include

INCLUDE = -I./include -I../libc/include

all: $(OBJS)

#  Compile Types
.cpp.o:
	$(CPP) ${CFLAGS} -Wall -DNOBOOL -fno-rtti -fno-exceptions -g -c $(INCLUDE) -o $@ $<
.cc.o:
	$(CPP) ${CFLAGS} -Wall -DNOBOOL -fno-rtti -fno-exceptions -fomit-frame-pointer -O $(INCLUDE) -c -o $@ $<
.cc.s:
	$(CPP) ${CFLAGS} -Wall -fomit-frame-pointer -O $(INCLUDE) -S -o $@ $<
.c.o:
	$(CC)  ${CFLAGS} -Wall -fomit-frame-pointer -O $(INCLUDE) -c -o $@ $<
.c.s:
	$(CC)  ${CFLAGS} -Wall -fomit-frame-pointer -O $(INCLUDE) -S -o $@ $<
.S.o:
	$(CC)  ${CFLAGS} -Wall -fomit-frame-pointer -c -o $@ $<

# Clean up the junk
clean:
	$(REMOVE) $(OBJS)