[xml] Makefile creation
- From: "emanuele berinotti" <beri75 hotmail com>
- To: xml gnome org
- Subject: [xml] Makefile creation
- Date: Fri, 01 Apr 2005 14:00:23 +0200
Hi to all!
I'm tring to create a simple makefile to compile the sample program
"reader1.c" on Solaris 5.7 using Gcc 2.9.3, I inserted the right compilation
and linker flag with xml2-config utily. The program "reader1" is created,
but when I run it the message:
"XInclude support not compiled in"
appear.
This is my makefile: what I've to add or modify??
#.SILENT:
TARGET =$(*)
CC = gcc
# ---------- standard definitions (begin) ----------------
.POSIX:
.SUFFIXES: .o .c
.c.o:
@$(CC) $(CFLAGS) $*.c -o $*.o $(GLOBINCL)
@$(CC) -o $(EXEFILE) $(FILES_o) $(EXTFILES_o) $(ALLLIBS)
CFLAGS = -c -g
ORALIBS = -L$(ORACLE_HOME)/lib32 -lclntsh
# ---------- standard definitions (end) ----------------
ALLLIBS = $(A22LIBS) $(ORALIBS) -L/usr/lib -R/usr/lib -lxml2 -lz -lpthread
-lm -lsocket -lnsl
GLOBINCL = -I$(HOME)/include -I/usr/include/libxml2
FILES_c = $(*).c
FILES_o = $(FILES_c:.c=.o)
EXTFILES_c =
EXTFILES_o = $(EXTFILES_c:.c=.o) $(EXTFILES_ORA)
EXEFILE = ./$(TARGET)
$(TARGET): $(FILES_o)
$(CC) -o $(EXEFILE) $(FILES_o) $(EXTFILES_o) $(ALLLIBS)
$(TARGET).o : $(TARGET).c $(HOME)/include/*.h
Thank in advance!
Bye!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]