Skip to content

Commit

Permalink
Added support to macOS
Browse files Browse the repository at this point in the history
Fubukimaru committed Apr 16, 2019
1 parent 3dc67c4 commit a293bad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
all: asmsx

CC=gcc
CCOSX=o64-clang
c_files=dura.tab.c lex.yy.c lex.parser1.c lex.parser2.c lex.parser3.c asmsx.c
OPT=-lm -O2 -Os -s -Wall -Wextra

asmsx: $(c_files) asmsx.h
$(CC) $(c_files) -o$@ $(OPT)
asmsx.osx: $(c_files) asmsx.h
$(CCOSX) $(c_files) -o$@ $(OPT)
asmsx-debug: $(c_files) asmsx.h
$(CC) -ggdb $(c_files) -o$@ -lm -Os -Wall -Wextra
asmsx.exe: $(c_files) asmsx.h

0 comments on commit a293bad

Please sign in to comment.