This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: automake and using an unsupported compiler


>>> "Michael" == Michael Obster <praenti at lug-in dot de> writes:

 Michael> Hi,
 Michael> i have a little problem with autoconf/automake.

 Michael> i want to compile a program with the command:
 Michael> fdpl -g -o program -main ownmain.c program.fdpl

 Michael> ownmain.c is a normal c file.
 Michael> program.fdpl is fdpl language

 Michael> how can i get this compiled with automake. bin_PROGRAMS or s.th. like
 Michael> that did not work for me, because program is completely linked by the
 Michael> fdpl compiler himself.
 Michael> a target definition .fdpl.o: gives me only objectnames and not the
 Michael> wanted output name.

How about writing your own build rule?  Something like this

bin_PROGRAMS = program
program_SOURCES =                   # empty
EXTRA_DIST = ownmain.c program.fdpl
program$(EXEEXT): ownmain.c program.fdpl
        fdpl -g -o $@ -main ownmain.c program.fdpl

-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]