Compare commits
No commits in common. "020797b9d843ceaa7a58bfd8385a571e8c4ee584" and "4683e3b4ad46e9392759c0efaead9177771ffe7c" have entirely different histories.
020797b9d8
...
4683e3b4ad
2 changed files with 2 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,8 +5,6 @@ include/gear/resources.h
|
||||||
res/res.c
|
res/res.c
|
||||||
log.txt
|
log.txt
|
||||||
*.exe
|
*.exe
|
||||||
*.pdb
|
|
||||||
*.ilk
|
|
||||||
gear-bin
|
gear-bin
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
**/*.o
|
**/*.o
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -61,8 +61,8 @@ $(RESOURCES_OBJ): $(RESOURCES_C) $(RESOURCE_FILES)
|
||||||
$(RESOURCES_H): $(RESOURCES_OBJ)
|
$(RESOURCES_H): $(RESOURCES_OBJ)
|
||||||
@echo "#ifndef __G_RESOURCES_H__" > $@
|
@echo "#ifndef __G_RESOURCES_H__" > $@
|
||||||
@echo "#define __G_RESOURCES_H__" >> $@
|
@echo "#define __G_RESOURCES_H__" >> $@
|
||||||
nm -g -j $(RESOURCES_OBJ) | sed "s/^_//" | \
|
@nm -g -j $(RESOURCES_OBJ) | \
|
||||||
awk '{ if($$0 ~ /len$$/) { print "extern int " $$0 ";" } else { print "extern char " $$0 "[];" } }' >> $@
|
awk '{ if($$0 ~ /len$$/) { print "extern int " substr($$0, 2) ";" } else { print "extern char " substr($$0, 2) "[];" } }' >> $@
|
||||||
@echo "#endif" >> $@
|
@echo "#endif" >> $@
|
||||||
@echo "Resources compiled"
|
@echo "Resources compiled"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue