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