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

CC := gcc
LDFLAGS := -lm -lrt

ifeq ($(OS),Windows_NT)
    TARGET := rasm.exe
else
    TARGET := rasm
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