blob: 205fc2f77afe6dcce0f287a42af601c25230d47a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
.PHONY: clean, mrproper
CXX = g++
CXXFLAGS = -nostartfiles -nostdlib -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
Objects = main.o
OutFile = Shell
all: $(OutFile)
echo "* Done with $(OutFile)."
rebuild: mrproper all
$(OutFile): $(Objects)
echo "* Linking $@.o..."
$(LD) $(LDFLAGS) ../../Library/Melon.o $^ -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)
|