[cairo-commit] CairoJava/jni Makefile,1.3,1.4

Soorya Kuloor commit at pdx.freedesktop.org
Fri Apr 30 10:50:51 PDT 2004


Committed by: skuloor

Update of /cvs/cairo/CairoJava/jni
In directory pdx:/tmp/cvs-serv14876/jni

Modified Files:
	Makefile 
Log Message:
Added all the files to the makefile

Index: Makefile
===================================================================
RCS file: /cvs/cairo/CairoJava/jni/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** a/Makefile	7 Aug 2003 20:43:38 -0000	1.3
--- b/Makefile	30 Apr 2004 17:50:49 -0000	1.4
***************
*** 1,18 ****
! CXXFLAGS=-O3 -g -ffloat-store -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -I ./ `pkg-config --cflags cairo` `pkg-config --cflags gtk+-2.0`
! LDFLAGS=`pkg-config --libs cairo` `pkg-config --libs gtk+-2.0`
  LIBDIR=../lib
  
  all:	$(LIBDIR)/libcairoJni.so
  
! libcairoJni.h:	../bin/org/cairographics/cairo/internal/CairoAPI.class
! 	$(JAVA_HOME)/bin/javah -o libcairoJni.h -classpath ../bin org.cairographics.cairo.internal.CairoAPI
  
! libcairoJni.o:	libcairoJni.h
  
! $(LIBDIR)/libcairoJni.so:	libcairoJni.o
  	mkdir -p $(LIBDIR)
! 	gcc -shared -O3 -g -ffloat-store -o $@ libcairoJni.o $(LDFLAGS) -lstdc++
  
  clean:
! 	rm -f libcairoJni.h libcairoJni.o
  
--- 1,53 ----
! CXXFLAGS=-O3 $(DEBUG) -ffloat-store -fPIC -Wall -I . -I $(JAVA_HOME)/include -I $(JAVA_HOME)/include/linux `pkg-config --cflags cairo` `pkg-config --cflags gtk+-2.0`
! 
! LDFLAGS=`pkg-config --libs cairo glitz-glx` `pkg-config --libs gtk+-2.0`
! 
  LIBDIR=../lib
  
+ CLASSDIR = ../bin
+ VPATH = $(CLASSDIR)/org/cairographics/cairo
+ 
+ SRCS = \
+ 	CairoException.cpp \
+ 	CairoFont.cpp \
+ 	CairoFreetypeFont.cpp \
+ 	CairoImageBuffer.cpp \
+ 	Cairo.cpp \
+ 	CairoLinearPattern.cpp \
+ 	CairoMatrix.cpp \
+ 	CairoPattern.cpp \
+ 	CairoRadialPattern.cpp \
+ 	CairoSurface.cpp \
+ 	CairoSurfacePattern.cpp \
+ 	CairoImageBufferSurface.cpp \
+ 	CairoSWTSurface.cpp \
+ 	CairoGlitzSurface.cpp
+ 
+ 
+ OBJS = $(patsubst %.cpp,%.o,$(SRCS))
+ HEADERS = $(patsubst %.cpp,%.h,$(SRCS))
+ DEPS = $(patsubst %.cpp,%.dep,$(SRCS))
+ 
  all:	$(LIBDIR)/libcairoJni.so
  
! headers:	$(HEADERS)
  
! depend:	headers $(DEPS)
  
! $(LIBDIR)/libcairoJni.so:	headers $(OBJS)
  	mkdir -p $(LIBDIR)
! 	gcc -shared -O3 $(DEBUG) -ffloat-store -o $@ $(OBJS) $(LDFLAGS) -lstdc++
! 
! %.h:	%.class
! 	$(JAVA_HOME)/bin/javah -o $@ -classpath $(CLASSDIR) $(subst /,.,$(subst $(CLASSDIR)/,,$(patsubst %.class,%,$<)))
! 
! %.dep: %.cpp
! 	@mkdir -p .deps
! 	gcc $(CXXFLAGS) -M -MF .deps/$@ $<
  
  clean:
! 	rm -fr $(OBJS) $(HEADERS) .deps $(LIBDIR)/libcairoJni.so
  
+ 
+ # Include automatically-generated dependency list:
+ -include .deps/*.dep





More information about the cairo-commit mailing list