-
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 e054c31
Showing
6 changed files
with
42 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,29 @@ | ||
Target := | ||
ifeq ($(OS),Windows_NT) | ||
Target := bin2h.exe | ||
else | ||
ifeq ($(shell grep Microsoft /proc/version), $(shell cat /proc/version)) | ||
Target := bin2h_wsl | ||
else | ||
Target := bin2h | ||
endif | ||
endif | ||
|
||
.PHONY: all forced clean bin2h bin2h_wsl 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.