# Generated automatically from Makefile.in by configure.
#
# Makefile for the examples directory.
#
CC	= gcc
CP      = g++
LIBS	= -lmenu -lpanel -lform -lncurses -pthread
CFLAGS	= -g -c -O2 -Wall -DHAVE_CHTYPE=1 -DHAVE_LIBNCURSES=1  -DHAVE_LIBM=1 -DHAVE_LIBNCURSES=1 -DHAVE_COLOR=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_GETCWD=1 -DHAVE_MKTIME=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1
CPFLAGS	= -g -O2 -Wall -DHAVE_CHTYPE=1 -DHAVE_LIBNCURSES=1  -DHAVE_LIBM=1 -DHAVE_LIBNCURSES=1 -DHAVE_COLOR=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_GETCWD=1 -DHAVE_MKTIME=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_USLEEP=1
INCDIR	= -I /usr/include -I.. -I.
LIBDIR	= -L..  -L/usr/lib/

objects = Container2.o openfile.o colors.o statbar.o menus.o front.o container.o Formatter.o macros.o time.o

#
# The phaser executable
#
phs: $(objects)
	$(CP) $(CPFLAGS) $(objects) -o $@ $(LIBDIR) $(LIBS)

#
# Basic back end Container class
#
container.o: container.cpp container.h macros.h
	$(CP) $(CFLAGS) container.cpp -o $@

#
# Extended version of the backend
#
Container2.o: Container2.cpp container2.h
	$(CP) $(CFLAGS) Container2.cpp -o $@

#
# The interphase layer
#
Formatter.o: Formatter.cpp Formatter.h macros.h
	$(CP) $(CFLAGS) Formatter.cpp -o $@

#
# Color maintainer class
#
colors.o: colors.cpp colors.h
	$(CP) $(CFLAGS) colors.cpp -o $@

#
# Status bar handling
#
statbar.o: statbar.cpp statbar.h
	$(CP) $(CFLAGS) statbar.cpp -o $@

#
# Frontend data structures
#
openfile.o: openfile.cpp openfile.h
	$(CP) $(CFLAGS) openfile.cpp -o $@
#
# Popdown and main menu handling
#
menus.o: menus.cpp menus.h
	$(CP) $(CFLAGS) menus.cpp -o $@
#
# frontend routines including main
#
front.o: front.cpp
	$(CP) $(CFLAGS) front.cpp -o $@

#
# some usefull macros and generic functions
#
macros.o: macros.cpp
	$(CP) $(CFLAGS) $? -o $@

#
# Time keeper
#
time.o: time.cpp
	$(CP) $(CFLAGS) $? -o $@

#
# Standard clean directives.
#
clean::
	$(RM) core *.o $(BINS)
distclean:: clean
	$(RM) Makefile
