MAKE = make
CC = gcc
INSTALL_FILE = install -p -o root -g root -m 644
INSTALL_DIR = install -p -o root -g root -d
LN = ln -s
RM = rm -fv
CFLAGS += -c -O2 -Wall
LDFLAGS +=
CFILES = image_DXT.c image_helper.c SOIL.c stb_image_aug.c
OFILES = $(CFILES:.c=.o)
LIBNAME = libSOIL
VERSION = 1.07-20071110
MAJOR = 1
HFILES = SOIL.h image_DXT.h image_helper.h \
stbi_DDS_aug.h stbi_DDS_aug_c.h stb_image_aug.h
AFILE = libSOIL.a
SOFILE = libSOIL.so.$(VERSION)
INCLUDEDIR = /usr/include/SOIL
LIBDIR = /usr/lib
all: $(OFILES) lib
%.o: %.c
$(CC) $(CFLAGS) $< -o $@
lib: $(OFILES)
# create static library
ar -cvq $(LIBNAME).a $(OFILES)
# create shared library
gcc -shared -Wl,-soname,$(LIBNAME).so.$(MAJOR) -o $(LIBNAME).so.$(VERSION) $(OFILES)
install:
$(INSTALL_DIR) $(DESTDIR)/$(INCLUDEDIR)
$(INSTALL_FILE) $(HFILES) $(DESTDIR)/$(INCLUDEDIR)
$(INSTALL_DIR) $(DESTDIR)/$(LIBDIR)
$(INSTALL_FILE) $(AFILE) $(DESTDIR)/$(LIBDIR)
$(INSTALL_FILE) $(SOFILE) $(DESTDIR)/$(LIBDIR)
( cd $(DESTDIR)/$(LIBDIR) && $(LN) $(SOFILE) $(LIBNAME).so.$(MAJOR) \
&& $(LN) $(SOFILE) $(LIBNAME).so )
clean:
$(RM) *.o
$(RM) *~
distclean:
$(RM) $(AFILE) $(SOFILE)
.PHONY: all lib clean distclean
没有合适的资源?快使用搜索试试~ 我知道了~
soil图像读取库 opengl开发必备
共36个文件
h:6个
c:6个
vcproj:3个
需积分: 10 136 下载量 68 浏览量
2016-03-22
15:08:56
上传
评论
收藏 464KB ZIP 举报
温馨提示
SOIL库是一个小型的C语言库,用来加载纹理到OpenGL 简单的图片读取库,读取图片作为OpenGL的纹理,大部分图片格式都可以读。
资源推荐
资源详情
资源评论
收起资源包目录
soil.zip (36个子文件)
Simple OpenGL Image Library
soil.html 18KB
support
FreeBasic
SOIL.bi 5KB
testSOIL.exe 176KB
img_test.dds 85KB
img_test.png 2KB
img_test.tga 5KB
img_test_indexed.tga 3KB
img_test.bmp 192KB
field_128_cube.dds 64KB
src
test_SOIL.cpp 11KB
image_helper.c 10KB
image_DXT.h 3KB
SOIL.h 15KB
image_DXT.c 17KB
SOIL.c 57KB
image_helper.h 2KB
stbi_DDS_aug.h 797B
stb_image_aug.c 115KB
stb_image_aug.h 17KB
stbi_DDS_aug_c.h 15KB
original
stb_image-1.09.c 115KB
stb_image-1.16.c 123KB
projects
VC7.1
SOIL.vcproj 4KB
SOIL.sln 897B
codeblocks
SOIL.cbp 2KB
makefile
makefile 1KB
alternate Makefile.txt 1KB
VC6
SOIL.dsw 533B
SOIL.dsp 3KB
VC9
SOIL.vcproj 7KB
SOIL.sln 1KB
VC8
SOIL.vcproj 4KB
SOIL.sln 872B
test_rect.png 9KB
img_cheryl.jpg 42KB
lib
libSOIL.a 78KB
共 36 条
- 1
资源评论
晴空❄雨霁
- 粉丝: 43
- 资源: 55
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功