# Process this file with automake to produce Makefile.in

CC = gcc
CFLAGS = -O -Wall
LIBIFPATH = ../libif
LIBAPPPATH = ../libapp

TARGET = pentanetx

OBJS = $(LIBIFPATH)/libif.la $(LIBAPPPATH)/libapp.la avicos.o msgdlg.o tpdlg.o fildlg.o 

all: $(TARGET)

$(TARGET) : $(OBJS)
	$(CC) $^ `gtk-config --libs` -o $@

###############################################################
avicos.o: avicos.c 
	$(CC) $(CFLAGS) `gtk-config --cflags` -c  avicos.c

msgdlg.o: msgdlg.c 
	$(CC) $(CFLAGS) `gtk-config --cflags` -c  msgdlg.c

tpdlg.o: tpdlg.c 
	$(CC) $(CFLAGS) `gtk-config --cflags` -c  tpdlg.c

fildlg.o: fildlg.c 
	$(CC) $(CFLAGS) `gtk-config --cflags` -c  fildlg.c

###############################################################

clean:
	rm -f $(TARGET) *.o *~
