summaryrefslogblamecommitdiff
path: root/Source/Applications/PaperWork/Makefile
blob: 8d079ec55b1d6c934d7b43a466ad6571e3d25982 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                                                                                                                                                  
                                                                
 
                     





















                                         
.PHONY: clean, mrproper

CXX = g++
CXXFLAGS = -nostartfiles -nostdlib -ffreestanding -fno-exceptions -fno-rtti -I ../../Library/Common -I ../../Library/Interface -I ../../Library/Userland -D THIS_IS_MELON_USERLAND

LD = ld
LDFLAGS = -T ../../Library/Link.ld -L ../../Library -Map Map.txt

Objects = PaperWork.o
OutFile = PaperWork

all: $(OutFile)
	echo "* Done with $(OutFile)."

rebuild: mrproper all

$(OutFile): $(Objects)
	echo "* Linking $@..."
	$(LD) $(LDFLAGS) $^ -o $@

%.o: %.cpp
	echo "* Compiling $<..."
	$(CXX) $(CXXFLAGS) -c $< -o $@

clean:
	echo "* Removing object files..."
	rm -rf *.o

mrproper: clean
	echo "* Removing applications..."
	rm -rf $(OutFile)