-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also will make bin2h compiled automatically depending on the OS
- Loading branch information
1 parent
eae8129
commit 2557525
Showing
6 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#--------------------------------------------------------------------------------- | ||
# Clear the implicit built in rules | ||
#--------------------------------------------------------------------------------- | ||
|
||
.SUFFIXES: | ||
#--------------------------------------------------------------------------------- | ||
ifeq ($(strip $(DEVKITPPC)),) | ||
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC") | ||
endif | ||
ifeq ($(strip $(DEVKITARM)),) | ||
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM") | ||
endif | ||
|
||
Target := | ||
ifndef WSLENV | ||
ifeq ($(OS),Windows_NT) | ||
Target := bin2h.exe | ||
else | ||
Target := bin2h | ||
endif | ||
else | ||
Target := bin2h_wsl | ||
endif | ||
|
||
.PHONY: all forced clean bin2h bin2h.exe | ||
|
||
all: $(Target) | ||
forced: clean all | ||
|
||
bin2h: | ||
@bash make.sh | ||
|
||
bin2h_wsl: | ||
@./make.cmd | ||
@mv bin2h.exe bin2h | ||
|
||
bin2h.exe: | ||
@make.cmd | ||
|
||
clean: | ||
@rm -fr bin2h | ||
@rm -fr bin2h.exe |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
gcc main.c -s -Os -static -o bin2h.exe | ||
pause | ||
gcc main.c -s -Os -static -o bin2h.exe |
Binary file not shown.