Update of /cvsroot/pclasses/pclasses2/src/Unicode
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30991
Modified Files:
Makefile.toc
Log Message:
builds :)
Index: Makefile.toc
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/src/Unicode/Makefile.toc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile.toc 23 Dec 2004 00:18:54 -0000 1.1
+++ Makefile.toc 23 Dec 2004 05:51:43 -0000 1.2
@@ -1,22 +1,51 @@
-###################################################
-# AUTO-GENERATED guess at a toc-aware Makefile,
-# based off of the contents of directory:
-# ./src/Unicode
-# Created by ./toc/bin/create_makefile_stubs.sh
-# Wed Dec 22 23:10:45 CET 2004
-# It must be tweaked to suit your needs.
-###################################################
+#!/usr/bin/make -f
include toc.make
-############## FLEXES:
-# WARNING: FLEXES stuff only works for C++-based flexers
-FLEXES =
-FLEXES_ARGS = -+ -p
-OBJECTS +=
-include $(TOC_MAKESDIR)/flex.make
-# Run target FLEXES to process these.
-# REMINDER: add the generated C++ files to your SOURCES, if needed.
-############## /FLEXES
-all:
-###################################################
-# end auto-generated rules
-###################################################
+
+SOURCES = Char.cpp \
+ String.cpp \
+ TextStream.cpp
+
+
+DIST_FILES += $(SOURCES) $(HEADERS)
+
+OBJECTS = Char.o \
+ String.o \
+ TextStream.o
+
+CLEAN_FILES += $(OBJECTS)
+
+build_libs = 1
+LIBNAME = punicode
+ifeq (1,$(build_libs))
+ STATIC_LIBS = $(LIBNAME)
+ SHARED_LIBS = $(STATIC_LIBS)
+ $(LIBNAME)_a_OBJECTS = $(OBJECTS)
+ $(LIBNAME)_so_OBJECTS = $($(LIBNAME)_a_OBJECTS)
+ $(LIBNAME)_so_VERSION = $(PACKAGE_VERSION)
+ include $(TOC_MAKESDIR)/SHARED_LIBS.make
+ include $(TOC_MAKESDIR)/STATIC_LIBS.make
+ # Run targets STATIC_LIBS and SHARED_LIBS build these.
+endif
+
+SOURCES_GEN = unicodedata.h unicodedata_extra.h
+UNICODE_DATA_FILE = UnicodeData.txt
+UNICODE_DATA_URL = http://www.unicode.org/Public/UNIDATA/$(UNICODE_DATA_FILE)
+INSTALL_HEADERS = $(SOURCES_GEN)
+$(SOURCES_GEN):
+ test -f $(UNICODE_DATA_FILE) || wget --passive-ftp $(UNICODE_DATA_URL)
+ $(AWK_BIN) -f $(top_srcdir)/src/Unicode/unicodedata.awk $(UNICODE_DATA_FILE) >unicodedata.h
+
+UNICODE_CLEAN_FILES = $(UNICODE_DATA_FILE) $(SOURCES_GEN)
+
+clean-unicode:
+ $(call toc_clean_files $(UNICODE_CLEAN_FILES))
+
+ifeq (,$(wildcard $(UNICODE_DATA_FILE)))
+# we can afford this if we don't need to download the data file
+clean: clean-unicode
+endif
+
+
+# distclean: clean-unicode
+
+all: STATIC_LIBS SHARED_LIBS
|