Project

General

Profile

« Previous | Next » 

Revision 0c2e61fd

Added by David Sorber over 9 years ago

Adding an optimized version of the packJPG source to the source tree for this utility since it is entirely dependent on packJPG. I started to modify the Makefile but really I shoud just use CMake. I'll work on that next.

View differences:

software/photo_compress_archiver/Makefile
CXX=clang++
#~ CXX=g++
CXXFLAGS=-std=c++11 -g
OBJECTS = main.o PhotoCompressArchiver.o
LDFLAGS=-L/opt/local/lib -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_regex-mt
NUM_CORES:=$(shell grep -c ^processor /proc/cpuinfo)
PACKJPG_SRC = $(wildcard packJPG/*.cpp packJPG/*.h)
all: main
main: $(OBJECTS)
packjpg: $(PACKJPG_SRC)
@echo $(PACKJPG_SRC)
cd packJPG/build; cmake ..; make -j $(NUM_CORES)
cp packJPG/build/packjpg .
main: $(OBJECTS) packjpg
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o pca $(OBJECTS)
%.o : %.cc
$(CXX) $(CXXFLAGS) -I/opt/local/include -c $<
clean_packjpg:
rm -f packjpg
rm -rf packJPG/build/*
clean:
rm -f *.o
rm -f pca

Also available in: Unified diff