makefile - resource file not linked -


people..i'm using autotools build gtk2 application. want make crossplatform. configure.ac:

ac_prereq([2.67]) ac_init([gtk2gifviewer], [1.0.0.0], aullidolunar@gmail.com) ac_config_macro_dir([m4]) ac_config_srcdir([main.c]) am_init_automake  ac_prog_cc lt_init ac_check_prog([windres],[windres],[yes],[no]) am_conditional([have_windres], [test "x$windres" = xyes])  pkg_check_modules([gtk2], [gtk+-2.0 >= 2.20])  ac_config_files([makefile]) ac_output 

and makefile.am:

aclocal_amflags = ${aclocal_flags} -i m4  suffixes: .rc  bin_programs = gtk2gifviewer gtk2gifviewer_sources = callbacks.c main.c extra_dist = callbacks.h main.xpm main.ico build.txt  if have_windres gtk2gifviewer_sources += resource.rc endif   gtk2gifviewer_cflags = $(gtk2_cflags) gtk2gifviewer_ldadd = $(gtk2_libs)  .rc.o:     windres -o $@ $<  run: $(package_name)$(exeext)     ./$<  .phony: run 

and simple resource file:

#include <windows.h>  app_icon icon "main.ico" 

both icon , resource.rc in same folder. in linux machine build expected. in windows msys can see normal, no errors no warnings, executable doesn't have icon. can see resource.o file same size icon.

any ideas?


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -