#
# Copyright (c) 2001, Sasha Vasko <sasha at aftercode.net>
# Copyright (c) 1998, Guylhem AZNAR <guylhem@oeil.qc.ca>
#

LIB_INCS= 	afterstep.h asapp.h ascommand.h asdatabase.h asfeel.h aswindata.h \
		  balloon.h canvas.h clientprops.h colorscheme.h \
		  decor.h desktop_category.h event.h freestor.h \
		  functions.h font.h hints.h \
                  kde.h moveresize.h myicon.h \
		  mylook.h mystyle.h mystyle_property.h \
		  parser.h screen.h shape.h \
		  session.h wmprops.h


# removed : mystrcasecmp.o mystrdup.o safemalloc.o
#           sleep.o hostname.o getfdwidth.o
#           audit.o strncmp.o homeanddirs.o
#           findfile.o asproperty.o catstring3.o copystring.o termhash.o
#
LIB_OBJS= asapp.o ascommand.o asdatabase.o asfeel.o aswindata.o \
				balloon.o canvas.o clientprops.o colorscheme.o \
				decor.o desktop_category.o event.o \
				freestor.o functions.o font.o hints.o kde.o module.o \
				moveresize.o myicon.o mylook.o mystyle.o mystyle_property.o \
				outline.o operations.o parser.o parser_fs.o parser_xml.o \
				screen.o session.o shape.o wmprops.o

LIB_SOURCES= asapp.c ascommand.c asdatabase.c asfeel.c aswindata.c \
				balloon.c canvas.c clientprops.c colorscheme.c \
				decor.c desktop_category.c event.c \
				freestor.c functions.c font.c hints.c kde.c module.c \
				moveresize.c myicon.c mylook.c mystyle.c mystyle_property.c \
				outline.c operations.c parser.c parser_fs.c parser_xml.c \
				screen.c session.c shape.c wmprops.c

CONFIG_SCRIPT= afterstep-config

LIB_DIR_NAME    = libAfterStep
LIB_NAME        = LIBAFTERSTEP
LIB_STATIC      = libAfterStep.a
LIB_SHARED      = libAfterStep.so
LIB_SHARED_CYG  = cygAfterStep.dll
LIB_SHARED_CYG_AR  = libAfterStep.dll.a
LIBVER          = @libafterstep_version@
LIBVERMAJOR     = @libafterstep_version_major@

# Debian Additions
DEB_EXTRA_LIBS		= $(LIBRARIES) -L../libAfterBase -lAfterBase -L../libAfterImage -lAfterImage
LIBS_PRIVATE      = ../src/afterstep/$(LIB_AFTERIMAGE) ../src/afterstep/$(LIB_AFTERBASE)  $(LIBS_AFTERIMAGE)

@MAKEFILECOMMONLIB@


test_parser_xml.o: parser_xml.c
		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DTEST_PARSER_XML $(INCLUDES) $(EXTRA_INCLUDES) -c parser_xml.c -o test_parser_xml.o

test_parser_xml:	test_parser_xml.o ../libAfterConf/libAfterConf.a ../libAfterStep/libAfterStep.a ../libAfterBase/libAfterBase.a
		$(CC) test_parser_xml.o ../libAfterConf/libAfterConf.a ../libAfterStep/libAfterStep.a $(USER_LD_FLAGS) $(LIBS_ALL) $(LIBS_AFTERIMAGE) -o test_parser_xml

test_parser_fs.o: parser_fs.c
		$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DTEST_PARSER_FS $(INCLUDES) $(EXTRA_INCLUDES) -c parser_fs.c -o test_parser_fs.o

test_parser_fs:	test_parser_fs.o ../libAfterConf/libAfterConf.a ../libAfterStep/libAfterStep.a ../libAfterBase/libAfterBase.a
		$(CC) test_parser_fs.o ../libAfterConf/libAfterConf.a ../libAfterStep/libAfterStep.a $(USER_LD_FLAGS) $(LIBS_ALL) $(LIBS_AFTERIMAGE) -o test_parser_fs


