Quote:
Originally posted by ToniT
Code:
gcc `pkg-config --cflags --libs libxml-2.0` foo.c -o foo
|
that is gcc compiler command to copile the file which include xml file libarries but
i have a to intgrate with my extin make file
iam giving my make file which includes a file called rfc_tc_output.c for which iam attachin the make file below not i want that make should also compile test.c which contains the function calls to libxml library and also includes the header files of the libxml library ..
#*******this is my exsiting make file which compiles a file called rfc_tc_output **
#now i add another file test.c which has xml call in the same directory whic has the above file
#how to integrate it with this make file so that so that both the files can be build
#makefile.in starts here
thisconfigdir=./..
myfulldir=lib/krb5/rfc_tc_output
mydir=rfc_tc_output
BUILDTOP=$(REL)..$(S)..$(S)..
LOCALINCLUDES = -I $(srcdir)/../asn.1 $(srcdir)/../krb $(srcdir)/../os $(srcdir)/../rfc_tc_krb
##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=rfc_tc_output
##DOS##OBJFILE=..\$(OUTPRE)rfc_tc_output.lst
##WIN16##LIBNAME=..\krb5.lib
EHDRDIR=$(BUILDTOP)/include/krb5/rfc_tc_output
STLIBOBJS= \
rfc_tc_output.o
SRCS= $(srcdir)/rfc_tc_output.c
OBJS= $(OUTPRE)rfc_tc_output.$(OBJEXT)
##DOS##LIBOBJS = $(OBJS)
all-unix:: all-libobjs
clean-unix:: clean-libobjs
# @libobj_frag@
# +++ Dependency line eater +++
#
# Makefile dependencies follow. This must be the last section in
# the Makefile.in file
#
rfc_tc_output.so rfc_tc_output.po $(OUTPRE)rfc_tc_output.$(OBJEXT): rfc_tc_output.c $(BUILDTOP)/include/krb5.h \
$(SRCTOP)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5/autoconf.h \
$(SRCTOP)/include/k5-platform.h $(BUILDTOP)/include/profile.h \
$(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
$(SRCTOP)/include/krb5/kdb.h
#makefile.in ends here