Makefile
上传用户:hengzhunsh
上传日期:2013-09-07
资源大小:19k
文件大小:1k
- #
- # Makefile
- #
- # Makefile for fbv
- include Make.conf
- CC = gcc
- CFLAGS = -O2 -Wall -D_GNU_SOURCE
- SOURCES = main.c jpeg.c gif.c png.c bmp.c fb_display.c transforms.c
- OBJECTS = ${SOURCES:.c=.o}
- OUT = fbv
- #LIBS = -lungif -L/usr/X11R6/lib -ljpeg -lpng
- all: $(OUT)
- @echo Build DONE.
- $(OUT): $(OBJECTS)
- $(CC) $(LDFLAGS) -o $(OUT) $(OBJECTS) $(LIBS)
- clean:
- rm -f $(OBJECTS) *~ $$$$~* *.bak core config.log $(OUT)
- distclean: clean
- @echo -e "error:nt@echo Please run ./configure first..." >Make.conf
- rm -f $(OUT) config.h
- install: $(OUT)
- cp $(OUT) $(DESTDIR)$(bindir)
- gzip -9c $(OUT).1 > $(DESTDIR)$(mandir)/man1/$(OUT).1.gz
- uninstall: $(DESTDIR)$(bindir)/$(OUT)
- rm -f $(DESTDIR)$(bindir)/$(OUT)
- rm -f $(DESTDIR)$(mandir)/man1/$(OUT).1.gz