#
# 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

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@

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


