summaryrefslogtreecommitdiff
path: root/tools/rasm/Makefile
blob: 8f0c708eb65b90c641e69c9b9bca31e0077ad0d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all: rasm

CC := gcc

ifdef ($(OS),Windows_NT)
    TARGET := rasm.exe
    LDFLAGS := -lrtm
else
    TARGET := rasm
    LDFLAGS := -lm -lrt
endif

rasm: rasm_v0120.c
	$(CC) $< -s -O2 $(LDFLAGS) -march=native -o $@
	cp $(TARGET) ../../bin
	rm -f $(TARGET)

clean:
	rm -f $(TARGET)

.PHONY: all clean