#!/bin/sh
#
# compile.sh
#
# Developed by Ondrej Jombik <nepto@platon.sk>
# Copyright (c) 2004 Platon SDG, http://platon.sk/
# Licensed under terms of GNU General Public License.
# All rights reserved.
#
# Changelog:
# 2004-05-09 - created
#
# $Platon$
if [ ! -f queries.txt ]; then
echo "queries.txt file does not exists, refusing to compile";
exit 1;
fi;
gcc -Wall -pedantic \
-I ~/prog/libplaton/ \
-L ~/prog/libplaton/platon/ \
-o db-replication db-replication.c shared.c \
-lmysqlclient -ldb -lplaton \
&& \
gcc -Wall -pedantic \
-I ~/prog/libplaton/ \
-L ~/prog/libplaton/platon/ \
-o telzozn telzozn.c shared.c \
-ldb -lplaton \
&& \
gcc -g -Wall -W -Wpointer-arith -Wbad-function-cast \
-Wwrite-strings -Wstrict-prototypes -Wno-unused \
-Wmissing-prototypes `pkg-config --cflags gtk+-2.0` \
-o telzozn-gtk telzozn-gtk.c \
`pkg-config --libs gtk+-2.0`
Platon Group <platon@platon.org> http://platon.org/
|