Created
August 25, 2014 14:05
-
-
Save shuxiao9058/367ba5681b7ea9ecba11 to your computer and use it in GitHub Desktop.
cross-platform compile libjpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC=arm-linux-gcc | |
CXX=arm-linux-g++ | |
LIBCOMMAND = arm-linux-ar cr | |
RANLIB = arm-linux-ranlib | |
%.o:%.c | |
$(CC) -c -o $@ $< | |
%.o:%.C | |
$(CC) -c -o $@ $< | |
%.o:%.cc | |
$(CXX) -c -o $@ $< | |
%.o:%.cpp | |
$(CXX) -c -o $@ $< | |
# | |
# Object files... | |
# | |
OBJS = \ | |
jaricom.o \ | |
jcapimin.o \ | |
jcapistd.o \ | |
jcarith.o \ | |
jccoefct.o \ | |
jccolor.o \ | |
jcdctmgr.o \ | |
jchuff.o \ | |
jcinit.o \ | |
jcmainct.o \ | |
jcmarker.o \ | |
jcmaster.o \ | |
jcomapi.o \ | |
jcparam.o \ | |
jcprepct.o \ | |
jcsample.o \ | |
jctrans.o \ | |
jdapimin.o \ | |
jdapistd.o \ | |
jdarith.o \ | |
jdatadst.o \ | |
jdatasrc.o \ | |
jdcoefct.o \ | |
jdcolor.o \ | |
jddctmgr.o \ | |
jdhuff.o \ | |
jdinput.o \ | |
jdmainct.o \ | |
jdmarker.o \ | |
jdmaster.o \ | |
jdmerge.o \ | |
jdpostct.o \ | |
jdsample.o \ | |
jdtrans.o \ | |
jerror.o \ | |
jfdctflt.o \ | |
jfdctfst.o \ | |
jfdctint.o \ | |
jidctflt.o \ | |
jidctfst.o \ | |
jidctint.o \ | |
jmemmgr.o \ | |
jmemnobs.o \ | |
jquant1.o \ | |
jquant2.o \ | |
jutils.o | |
LIBJPEG = ./libfltk_jpeg.a | |
# | |
# Make all targets... | |
# | |
all: $(LIBJPEG) | |
# | |
# Clean all targets and object files... | |
# | |
clean: | |
$(RM) $(OBJS) | |
$(RM) $(LIBJPEG) | |
# | |
# libfltk_jpeg.a | |
# | |
$(LIBJPEG): $(OBJS) | |
echo Archiving $@... | |
# $(RM) $@ | |
$(LIBCOMMAND) $@ $(OBJS) | |
$(RANLIB) $@ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment