blob: 28dad49d64073766ea7b4e4691f564654bf6b941 (
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
|
.PHONY: clean, mrproper
ASM = nasm
ASMFLAGS = -f elf
LD = ld
LDFLAGS = --entry=start -Ttext=40000000
Applications = asmdemo
all: $(Applications)
echo "* Done with applications : $(Applications)"
rebuild: mrproper all
%: %.o
echo "* Linking $<..."
$(LD) $(LDFLAGS) $< -o $@
%.o: %.asm
echo "* Compiling $<..."
$(ASM) $(ASMFLAGS) -o $@ $<
clean:
echo "* Removing object files..."
rm -rf *.o
mrproper: clean
echo "* Removing applications..."
rm -rf $(Applications)
|