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