A Simple X Image Viewer
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
468 B

  1. all: sxiv
  2. VERSION=git-20110123
  3. CC?=gcc
  4. PREFIX?=/usr/local
  5. CFLAGS+= -std=c99 -Wall -pedantic -DVERSION=\"$(VERSION)\"
  6. LDFLAGS+=
  7. LIBS+= -lX11 -lImlib2
  8. SRCFILES=$(wildcard *.c)
  9. OBJFILES=$(SRCFILES:.c=.o)
  10. sxiv: $(OBJFILES)
  11. $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
  12. %.o: %.c Makefile config.h
  13. $(CC) $(CFLAGS) -c -o $@ $<
  14. install: all
  15. install -D -m 4755 -o root -g root sxiv $(PREFIX)/sbin/sxiv
  16. clean:
  17. rm -f sxiv *.o
  18. tags: *.h *.c
  19. ctags $^
  20. cscope: *.h *.c
  21. cscope -b