automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Please help me!Thank you!


From: hevay
Subject: Please help me!Thank you!
Date: Tue, 26 Sep 2000 09:01:54 +0800

 
----- Original Message -----
From: hevay
Sent: Monday, September 25, 2000 4:17 PM
Subject: Please help me!

 
----- Original Message -----
From: hevay
Sent: Monday, September 25, 2000 3:48 PM
Subject: Please help me!

Dear sir:
   My question is about 'autoconf' and 'automake':
   I have a C program.The primary source 'relay_hk_test.c' is in the directory '/home/ips/src/relay_for_hk/me20/'.
   And the file 'relay_hk_test.c' needs 'hk_mupp_test.c' and 'me_hk_mupp.c' which is in the directory '/home/ips/include/mupp/'.
   In the directory '/home/ips/',I wrote these things in Makefile.am and configure.in as below:
Makefile.am:
 
EXTRA_DIST = BUGS ChangeLog.O
SUBDIRS = src include
 
configure.in:
 
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/relay_for_hk/me/relay_hk_test.c)
AM_INIT_AUTOMAKE(relay_hk_test, 1.3.11)
AM_CONFIG_HEADER(config.h)
dnl Set of available languages.
ALL_LINGUAS="de fr es ko nl no pl pt sl sv"
dnl Checks for programs.
AC_PROG_CC
AC_ISC_POSIX
dnl Checks for libraries.
dnl Checks for header files.
AC_STDC_HEADERS
AC_HAVE_HEADERS(string.h fcntl.h sys/file.h sys/param.h)
dnl Checks for library functions.
AC_FUNC_ALLOCA
dnl Check for st_blksize in struct stat
AC_ST_BLKSIZE
dnl internationalization macros
AC_OUTPUT([Makefile src/relay_for_hk/me20/Makefile])
 
   And in the directory '/home/ips/src/relay_for_hk/me20/' which includes the primary source 'relay_hk_test.c',I wrote these things in Makefile.am as below:
Makefile.am:
 
bin_PROGRAMS = relay_hk_test
INCLUDES = -I../../../include/mupp -I../../../utility -I../../../include/mysql -L../../../lib -lmysqlclient  -I../../../include/cgi -DLOCALEDIR=\"$(localedir)\"
relay_hk_test_SOURCES = relay_hk_test.c ../../../hk_mupp_test.c ../../../me_hk_mupp.c
 
But when I use make in the direcrory '/home/ips/',it displays as below:
make[1]: Entering directory `/home/ips'
Making all in src
make[2]: Entering directory `/home/ips/src'
make[2]: *** No rule to make target `all'.  Stop.
make[2]: Leaving directory `/home/ips/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ips'
make: *** [all-recursive-am] Error 2
   When I use make in the direcrory '/home/src/relay_for_hk/me20/',it displays error again.
 
   How can I use automake and aotoconf correctly?How can I generate the right Makefile file.Would you please help me?
yours sincere user
hevay
china
 
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]