Update of /cvsroot/pclasses/pclasses2/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20557
Modified Files:
Makefile.toc
Log Message:
this dir now builds, at least basically
Index: Makefile.toc
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/src/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 02:27:52 -0000 1.2
@@ -1,65 +1,37 @@
-###################################################
-# AUTO-GENERATED guess at a toc-aware Makefile,
-# based off of the contents of directory:
-# ./src
-# 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
-SUBDIRS = Net System Unicode Util
-############## 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
+
+# SUBDIRS = Net System Unicode Util
+
SOURCES = Alloc.cpp \
AtomicInt.gcc-x86.cpp \
ByteOrderTraits.cpp \
- Char.cpp \
Exception.cpp \
- IODevice.cpp \
- LinkedItem.cpp \
- String.cpp \
- TextStream.cpp
+ LinkedItem.cpp
+
+# will move to IO: IODevice.cpp
+# will move to Unicode: Char.cpp String.cpp TextStream.cpp
DIST_FILES += $(SOURCES)
-OBJECTS = Alloc.o \
- AtomicInt.gcc-x86.o \
- ByteOrderTraits.o \
- Char.o \
- Exception.o \
- IODevice.o \
- LinkedItem.o \
- String.o \
- TextStream.o
+OBJECTS = $(patsubst %.cpp,%.o,$(SOURCES))
CLEAN_FILES += $(OBJECTS)
-build_libs = 0
+build_libs = 1
+LIBNAME = libpcore
ifeq (1,$(build_libs))
- STATIC_LIBS = thislib
- thislib_a_OBJECTS = $(OBJECTS)
- thislib_so_OBJECTS = $(thislib_a_OBJECTS)
- # thislib_so_VERSION = $(PACKAGE_VERSION)
+ STATIC_LIBS = $(LIBNAME)
+ SHARED_LIBS = $(STATIC_LIBS)
+ $(LIBNAME)_a_OBJECTS = $(OBJECTS)
+ $(LIBNAME)_so_OBJECTS = $($(LIBNAME)_a_OBJECTS)
+ $(LIBNAME)_so_LDADD = $(LIBPCLASSES_LDADD)
+ $(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
-build_bins = 0
-ifeq (1,$(build_bins))
- BIN_PROGRAMS = thisbin
- thisbin_bin_OBJECTS = $(OBJECTS)
- include $(TOC_MAKESDIR)/BIN_PROGRAMS.make
- INSTALL_BINS += $(BIN_PROGRAMS)
- # Run target BIN_PROGRAMS to build these.
-endif
-
-all:
+all: STATIC_LIBS SHARED_LIBS
###################################################
# end auto-generated rules
###################################################
|