Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compilation work on Linux #9

Merged
merged 2 commits into from
Jan 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Improve Makefile
Allow overriding compilation flags
Use optimized build by default
Use system default C compiler, not necessarily GCC (and allow overriding)
  • Loading branch information
ISSOtm committed Jan 17, 2021
commit 137fb6600704ed6fb713caf44aa721dfc19e3395
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
CFLAGS ?= -O3 -flto

all: main.c
gcc -ggdb3 -O0 main.c -o rnc64
gcc -m32 -ggdb3 -O0 main.c -o rnc32
$(CC) $(CFLAGS) main.c -o rnc64
$(CC) $(CFLAGS) -m32 main.c -o rnc32
.PHONY: all

clean:
rm -f rnc64 rnc32
.PHONY: clean