summarylogtreecommitdiffstats
path: root/Makefile
blob: 04460d13c7685f0c2f5132ba514ffaae5f77ca49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SOURCES := ramsmp.c

ifeq ($(CARCH),i686)
SOURCES += $(wildcard i386/*.s) $(wildcard i386/cpuinfo/*.s)
CPPFLAGS += -DI386_ASM
else ifeq ($(CARCH),x86_64)
SOURCES += $(wildcard amd64/*.s)
CPPFLAGS += -DAMD64_ASM
else
SOURCES += fltmem.c intmem.c fltmark.c intmark.c
endif

CPPFLAGS += -DLinux
CFLAGS += -O3

ramsmp: $(SOURCES)
	echo $(CARCH)
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ -o $@

clean:
	rm -f *.o ramsmp