cant build makefile

Problems with the Linux version of XAMPP, questions, comments, and anything related.

cant build makefile

Postby DarkPhantM » 16. July 2006 07:26

hey all I am currently trying to build this file with make and it says that it can not find mysql.h is there anyone who can help me out with finding out where i can find it I would be more than greatful

the script is as below:

LIB = /usr/lib/libmysqlclient.a -lz
LIB = -lmysqlclient -lcrypt -lz
SRC = ticker.c score.c update.c core_sql.c helper.c battle.c cleanup.c logging.c
OBJ = $(SRC:.c=.o)

CC = gcc
CFLAGS= -O3 -g -Wall
LDFLAGS= -O3 $(LIB)

.SUFFIXES: .c .o

.PHONY: update

all: ticker tick_sleep

test: $(OBJ)
gcc -O -g $(OBJ) -o ticker.test $(LIB)

ticker: $(OBJ)
gcc -O -g $(OBJ) -o ticker $(LIB)

sql: test_sql.o core_sql.o
gcc -O -g test_sql.o core_sql.o -o test_sql $(LIB)

tick_sleep: tick_sleep.o
gcc -O -g tick_sleep.o -o tick_sleep

update:
cp ticker ticker.old
cp ticker.test ticker

clean:
rm -f *.o ticker *~ tick_sleep

$(OBJ): ticker.h logging.h
tick_sleep.o: tick_sleep.c



once again thanks guys
DarkPhantM
 
Posts: 1
Joined: 16. July 2006 04:41

Postby ac » 16. July 2006 21:54

Are you trying compile XAMPP or their packadges ?
If yes, can you please give more details ?

see also: http://community.apachefriends.org/f/viewtopic.php?t=19016

thanks
ac
 
Posts: 10
Joined: 30. June 2006 12:48


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 22 guests