Fix more things for Haiku port

* Add an icon in the native format
* Add "resource definition" to the executable (including icon and version info)
* Use the proper API to find the share directory.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2126 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2015-08-16 12:27:21 +00:00
parent 2f3c55477e
commit f2797f6648
4 changed files with 70 additions and 18 deletions

View File

@@ -544,6 +544,11 @@ ziprelease: version $(BIN) release
$(BIN) : $(OBJ)
test -d ../bin || $(MKDIR) ../bin
$(CC) $(OBJ) -o $(BIN) $(LOPT) $(LFLAGS)
ifeq ($(PLATFORM),Haiku)
rc -o $(OBJDIR)/grafx2.rsrc grafx2.rdef
xres -o $(BIN) $(OBJDIR)/grafx2.rsrc
mimeset -f $(BIN)
endif
# SVN revision number
version.c :