Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, March 29, 2024

File: [Platon] / tucniak / Makefile (download)

Revision 1.2, Wed Nov 30 18:30:12 2005 UTC (18 years, 4 months ago) by koli


Changes since 1.1: +7 -1 lines

Executable testing file for cuchar library

# Copyright (c) 2003,2004,2005 Juraj Kolesar (koli) <koli@koli.sk>               

CC = gcc
APP_NAME = tucniak
DIR_OBJECTS = ./objects
LIB_GLIB = `glib-config --libs --cflags` 
#LIB_POSTGRE = -I/usr/include/pgsql -lpq 
LIB_CURSES = -lcurses
LIB_MYSQL = -L/usr/lib/mysql -lmysqlclient
#LIBS = $(LIB_GLIB) $(LIB_POSTGRE) $(LIB_CURSES)
LIBS = $(LIB_GLIB) $(LIB_MYSQL) $(LIB_CURSES)
MAKE_SUB = make -f Makefile.am

default:
#    mkdir $(DIR_OBJECTS)
    cd lib;        $(MAKE_SUB)
    cd util;    $(MAKE_SUB)
    cd db;        $(MAKE_SUB)
    cd term;    $(MAKE_SUB)
    cd api;        $(MAKE_SUB)
    $(CC) -o $(APP_NAME) $(DIR_OBJECTS)/*.o $(LIBS)

cc:
    cd cuchar;    $(MAKE_SUB)

test:
        $(CC) -o cc_test $(DIR_OBJECTS)/cc/*.o ./cuchar/test/main.c $(LIB_GLIB) $(LIB_CURSES) -lgpm -lpthread

clean:
    @rm -f $(DIR_OBJECTS)/*.o 
    rm -f tucniak
    rm -f tucniak.log

#$(OBJECTS):
#OBJECTS = $(wildcard $(DIR_OBJECTS)/*.o)



Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top