improve makefile compatibility
This commit is contained in:
parent
4683e3b4ad
commit
17abd5e1d2
5 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -61,8 +61,8 @@ $(RESOURCES_OBJ): $(RESOURCES_C) $(RESOURCE_FILES)
|
|||
$(RESOURCES_H): $(RESOURCES_OBJ)
|
||||
@echo "#ifndef __G_RESOURCES_H__" > $@
|
||||
@echo "#define __G_RESOURCES_H__" >> $@
|
||||
@nm -g -j $(RESOURCES_OBJ) | \
|
||||
awk '{ if($$0 ~ /len$$/) { print "extern int " substr($$0, 2) ";" } else { print "extern char " substr($$0, 2) "[];" } }' >> $@
|
||||
nm -g -j $(RESOURCES_OBJ) | sed "s/^_//" | \
|
||||
awk '{ if($$0 ~ /len$$/) { print "extern int " $$0 ";" } else { print "extern char " $$0 "[];" } }' >> $@
|
||||
@echo "#endif" >> $@
|
||||
@echo "Resources compiled"
|
||||
|
||||
|
|
BIN
gear-bin.ilk
Normal file
BIN
gear-bin.ilk
Normal file
Binary file not shown.
BIN
gear-bin.pdb
Normal file
BIN
gear-bin.pdb
Normal file
Binary file not shown.
BIN
gear.ilk
Normal file
BIN
gear.ilk
Normal file
Binary file not shown.
BIN
gear.pdb
Normal file
BIN
gear.pdb
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue