blob: 8cdac422c0c3f56578eff0c226d7c44d8562b1d5 (
plain)
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
|
NASMFLAGS = -f elf
CINCLUDE=
CWARNS=-Wall -Wpointer-arith -Wnested-externs
CFLAGS=$(CINCLUDE) $(CWARNS) -O2
LDFLAGS=
SRCDIR=src
BINDIR=build
all: libmalice.o demo-printing
libmalice.o: libmalice.asm
nasm $(NASMFLAGS) -o $@ $<
.c.o:
cc $(CFLAGS) -c -o $@ $<
demo-printing: demo-printing.o libmalice.o
ld $(LDFLAGS) -nostdlib -e _lmStart -o demo-printing demo-printing.o libmalice.o
demos: demo-printing
.PHONY : clean
clean:
rm -f *.o
rm -f demo-printing
|