home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Divers
/
freedraft.tar.gz
/
freedraft.tar
/
FREEdraft-050298
/
GEOMLIB2D
/
Makefile
< prev
next >
Wrap
Makefile
|
1998-04-27
|
2KB
|
65 lines
# GEOMLIB2D subdirectory Makefile
# Copyright (C) 1998 Cliff Johnson #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public #
# License as published by the Free Software Foundation; either #
# version 2 of the License, or (at your option) any later version. #
# #
# This software is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this software (see COPYING.LIB); if not, write to the #
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #
FREEROOT=..
include $(FREEROOT)/Makefile.in
CFLAGS+= -fPIC
SRCS = circle.cpp \
geom.cpp \
geomlib2d.cpp \
line.cpp \
point.cpp \
segment.cpp \
arc.cpp \
pick.cpp \
pickgeom.cpp \
geomexception.cpp
OBJS = $(SRCS:%.cpp=%.o)
all : library
library: $(OBJS)
$(CXX) -shared -Wl,-soname,libGeom2D.so.0 -o libGeom2D.so.0.3 $(OBJS)
ln -sf libGeom2D.so.0.3 libGeom2D.so.0
ln -sf libGeom2D.so.0 libGeom2D.so
%.o : %.cpp
$(CXX) $*.cpp $(CFLAGS) -c
testlibshared : clean testlib.cpp library
$(CXX) testlib.cpp -g -Wall -L. -lGeom2D -o testlibshared
testliblinked : clean testlib.cpp $(OBJS)
$(CXX) testlib.cpp -g -Wall $(OBJS) -o testliblinked
testlibstatic : clean testlib.cpp $(OBJS)
$(CXX) testlib.cpp -g -static -Wall $(OBJS) -o testlibstatic
testarc : testarc.cpp arc.o point.o geom.o circle.o
$(CXX) testarc.cpp arc.o point.o geom.o circle.o $(CFLAGS) -o testarc
clean :
rm -f *.o testlibstatic testlibshared testliblinked testlib testarc libGeom2D.so.*
vimclean: clean
rm -f *~