Permalink
Browse files

Changed build system to use autoconf

  • Loading branch information...
1 parent 7319bfe commit 9af70dc1f7b1d791251d013133211d149c3cd7d5 er258 committed Apr 28, 2005
Showing with 10,610 additions and 515 deletions.
  1. +0 −288 Makefile
  2. +196 −0 Makefile.in
  3. +1,317 −0 config.guess
  4. +1,411 −0 config.sub
  5. +6,991 −3 configure
  6. +424 −0 configure.in
  7. +2 −2 cvd/internal/disk_image.h
  8. +10 −5 cvd_src/Linux/dvbuffer.cc
  9. +3 −2 cvd_src/Linux/v4l2buffer.cc
  10. +2 −1 cvd_src/image_io.cc
  11. +251 −0 install-sh
  12. +0 −38 make/IRIX.make
  13. +0 −55 make/Linux.make
  14. +0 −8 make/arch.make
  15. +0 −18 make/generic.make
  16. +0 −6 make/libffmpeg.make
  17. +0 −8 make/libjpeg.make
  18. +0 −9 make/libtiff.make
  19. +0 −17 make/prog_dependencies.awk
  20. +0 −43 make/test.c
  21. +0 −7 make/x11.make
  22. +3 −5 pnm_src/pnm_grok.cxx
View
288 Makefile
@@ -1,288 +0,0 @@
-UNAME=$(shell uname)
-
-################################################################################
-#
-# External library locations
-#
-
-NUMERICS=$(HOME)/code/TooN
-X11_I=/usr/X11R6/include
-X11_L=/usr/X11R6/lib
-OTHER_I=$(HOME)/usr/local/include
-OTHER_L=$(HOME)/usr/local/lib
-
-
-FORCE_GCC=1
-
-PREFIX=$(HOME)/usr/noarch
-EXEC_PREFIX=$(HOME)/usr/arch/$(UNAME)
-
-
-
-#Options: 0 | full
-OPTIMIZE=0
-#Options: 0 | 1
-DEBUG=1
-#Profile
-PROFILE=0
-
-MAJOR_VER=0
-MINOR_VER=6
-MINOR_MINOR_VER=0
-
-################################################################################
-#
-# Configure CPU architecture specific stuff
-#
-
-include make/arch.make
-
-
-
-################################################################################
-#
-# Configure OS specific stuff
-#
-
-ifeq ($(UNAME),Linux)
- include make/Linux.make
-else
-ifeq ($(UNAME),IRIX)
- include make/IRIX.make
-else
- include make/generic.make
-endif
-endif
-
-################################################################################
-#
-# Configure library specific stuff
-#
-include make/x11.make
-
-#Images
-images=
-
-include make/libjpeg.make
-include make/libtiff.make
-include make/libffmpeg.make
-
-#List of all possible options
-options_libs=videodisplay jpeg ffmpeg tiff
-
-
-OFLAGS=$(OFLAGS_$(OPTIMIZE))
-DFLAGS=$(DFLAGS_$(DEBUG))
-PFLAGS=$(PFLAGS_$(PROFILE))
-
-CXX_FLAGS=$(CXXFLAGS) -g -I. -I$(OTHER_I) -I $(NUMERICS) -I$(X11_I) $(INCLUDE) $(DFLAGS) $(OFLAGS) $(WFLAGS) $(MISCFLAGS) $(PFLAGS)
-CXX_FLAGS_no_opt=$(CXXFLAGS) -I. -I$(OTHER_I) -I $(NUMERICS) -I$(X11_I) $(INCLUDE) $(DFLAGS) $(WFLAGS) $(MISCFLAGS) $(PFLAGS)
-
-
-################################################################################
-#
-# Object files
-
-
-CVD_OBJS= cvd_src/se3.o \
- cvd_src/so3.o \
- cvd_src/cvd_timer.o \
- cvd_src/brezenham.o \
- cvd_src/globlist.o \
- cvd_src/diskbuffer2.o \
- cvd_src/deinterlacebuffer.o \
- cvd_src/exceptions.o \
- cvd_src/image_io.o \
- pnm_src/instantiations.o \
- pnm_src/pnm_grok.o \
-
-#Optional library support
-OBJS_OPT_LIBS=$(jpeg_objs) $(ffmpeg_objs) $(x11_objs) $(tiff_objs)
-
-#Arch specific object files
-OBJS_arch=$(yuv411_objs)
-
-#Aggregte all object file
-OBJS=$(CVD_OBJS) $(OBJS_$(UNAME)) $(OBJS_arch) $(OBJS_OPT_LIBS)
-
-################################################################################
-#
-# Programs to be installed, with dependencies
-#
-D_PROGS=progs/se3_exp \
- progs/se3_ln \
- progs/se3_pre_mul \
- progs/se3_post_mul \
- progs/se3_inv \
- progs/img_play videodisplay \
- progs/img_play_bw videodisplay \
- progs/img_play_deinterlace videodisplay \
- progs/video_play videodisplay ffmpeg \
- progs/video_play_bw videodisplay ffmpeg \
-
-PROGS=$(shell echo $(options) $(D_PROGS) | awk -f make/prog_dependencies.awk)
-
-################################################################################
-#
-# Required headers
-
-HEADERS=cvd/arch.h cvd/version.h
-
-
-################################################################################
-#
-# Test programs
-TEST_all= test/test_images.test
-TEST= $(TEST_all) $(TEST_$(UNAME))
-
-
-LIBMAJ=libcvd.so.$(MAJOR_VER)
-LIBMIN=$(LIBMAJ).$(MINOR_VER)
-LIBMMIN=$(LIBMAJ).$(MINOR_VER).$(MINOR_MINOR_VER)
-
-all: libcvd.a libcvd.so progs
-
-libcvd.a: configuration $(OBJS)
- $(AR) libcvd.a $(OBJS)
- ranlib libcvd.a
-
-libcvd.so: libcvd.a
- $(CC) -shared -o $(LIBMMIN) -lc $(OBJS) $(TESTLIB)
- #strip $(LIBMIN)
- rm -f $(LIBMAJ) libcvd.so $(LIBMIN)
- ln -s $(LIBMMIN) $(LIBMIN)
- ln -s $(LIBMIN) $(LIBMAJ)
- ln -s $(LIBMAJ) libcvd.so
-
-
-testprogs:$(TEST)
-test:testprogs
- mkdir -p testout/foo
- echo "**** TESTING image loading and saving:"
- test/test_images.test test/images/*.p?m test/images/*.jpg # > test_images.out.tmp
- echo "**** Converting to 8 bit (so xv will work for us...)"
- ls testout/*.pnm | sed -e's!testout/\(.*\)!pnmdepth 255 "&" > "testout/foo/\1"!' | sh
- echo "**** Check if images are OK:"
- echo "**** Warning: some versions of pnmdepth break on 16 bit files!"
- mv testout/*.jpg testout/foo/
- xv testout/*
-
- echo "**** TESTING video i/o: press a key to exit"
- #test/videoprog.test
-
- echo "**** All OK"
-
-
-install: libcvd.a libcvd.so $(PROGS)
- cp -r cvd $(PREFIX)/include/
- cp libcvd.a $(EXEC_PREFIX)/lib/
- cp libcvd.so* $(EXEC_PREFIX)/lib/
- cp $(PROGS) $(EXEC_PREFIX)/bin/
-
-docs:
- doxygen Doxyfile
-
-cvd/arch.h: util/make_pnm_arch_h.util
- util/make_pnm_arch_h.util > cvd/arch.h
-
-cvd/version.h:
- echo "#ifndef __CVD_VERSION_H" > cvd/version.h
- echo "#define __CVD_VERSION_H" >> cvd/version.h
- echo " #define CVD_MAJOR_VERSION $(MAJOR_VER)" >> cvd/version.h
- echo " #define CVD_MINOR_VERSION $(MINOR_VER)" >> cvd/version.h
- echo "#endif" >>cvd/version.h
-
-cvd/internal/avaliable_images.hh:
- echo $(images) | awk -vRS='[[:space:]]' '$0{a=toupper($$1);print "#define CVD_IMAGE_HAS_"a" "a","}' > cvd/internal/avaliable_images.hh
-
-configuration: cvd/arch.h cvd/internal/avaliable_images.hh
- $(echo) "CVD version $(MAJOR_VER).$(MINOR_VER)\n" > configuration
- $(echo) "Platform: $(UNAME)" >> configuration
- $(echo) "Compiler: $(CXX)" >> configuration
- $(echo) "Debug level: $(DEBUG) (DFLAGS=$(DFLAGS))" >> configuration
- $(echo) "Optimize: $(OPTIMIZE) (OFLAGS=$(OFLAGS))" >> configuration
- $(echo) '$(config_$(UNAME))' >> configuration
- $(echo) -n "Arch specific stuff: " >> configuration
- awk -vORS=" " '!/PNM/{print $$2}' cvd/arch.h >> configuration
- $(echo) "has_i686=$(has_i686)\n" >> configuration
- $(echo) "Options: $(options)\n" >> configuration
- $(echo) -n "Missing options for $(UNAME): " >> configuration
- echo $(options_libs) $(options_$(UNAME)) $(options) | awk 'BEGIN{RS=" "}{a[$$1]++}END{for(i in a)if(a[i]==1)printf(i" "); print""}' >> configuration
- $(echo) -n "Programs:" >> configuration
- echo $(PROGS) | sed -e's!progs/!!g' >> configuration
-
-progs: libcvd.a $(PROGS)
-
-progs/se3_exp: libcvd.a progs/se3_exp.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd
-
-progs/se3_ln: libcvd.a progs/se3_ln.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd
-
-progs/se3_inv: libcvd.a progs/se3_inv.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd
-
-progs/se3_pre_mul: libcvd.a progs/se3_pre_mul.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd
-
-progs/se3_post_mul: libcvd.a progs/se3_post_mul.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd
-
-#progs/img_stream_play: libcvd.a progs/img_stream_play.o
- #$(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd $(TESTLIB)
-
-progs/img_play: libcvd.a progs/img_play.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd $(TESTLIB)
-
-progs/img_play_deinterlace: libcvd.a progs/img_play_deinterlace.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd $(TESTLIB)
-
-progs/img_play_bw: libcvd.a progs/img_play_bw.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd $(TESTLIB)
-
-progs/video_play: libcvd.a progs/video_play.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd $(TESTLIB)
-
-progs/video_play_bw: libcvd.a progs/video_play_bw.o
- $(CXX) $^ -o $@ $(OFLAGS) -L. -lcvd $(TESTLIB)
-
-clean:
- rm -f libcvd.a
- rm -f libcvd.so*
- find . -name '*.o' | xargs rm -f
- find . -name '*.test' | xargs rm -f
- find . -name '*.util' | xargs rm -f
- rm -f cvd/arch.h cvd/version.h cvd/internal/avaliable_images.hh
- find . -name 'ii_files' | xargs rm -rf
- rm -rf testout tmp *.tmp
- rm -f configuration
- rm -f cvd/version.h
-
-
-
-
-################################################################################
-#
-# Generic rules
-.SUFFIXES:
-.SUFFIXES: .cc .C .o .cxx .test .util
-
-
-.cxx.util:
- $(CXX) -o $@ -L. $(CXX_FLAGS_no_opt) $< $(UTILLIB)
-
-%.test: %.C libcvd.a
- $(CXX) -o $@ -L. $(CXX_FLAGS_no_opt) $< -lcvd $(TESTLIB) -lm
-
-%.test: %.cxx libcvd.a
- $(CXX) -o $@ -L. $(CXX_FLAGS) $< -lcvd $(TESTLIB) -lm
-
-%.o : %.cc $(HEADERS)
- $(CXX) -o $@ -c $(CXX_FLAGS) $<
-
-%.o : %.cxx $(HEADERS)
- $(CXX) -o $@ -c $(CXX_FLAGS) $<
-
-#These have asm in them. Do not optimize.
-%.o : %.C $(HEADERS)
- $(CXX) -o $@ -c $(CXX_FLAGS_no_opt) $<
Oops, something went wrong.

0 comments on commit 9af70dc

Please sign in to comment.