12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- # Makefile for slim - OpenBSD
- #
- # Edit the following section to adjust the options
- # to fit into your operating system / distribution
- #######################################################
- CXX=/usr/bin/g++
- CC=/usr/bin/gcc
- CFLAGS=-I. -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include/freetype2/config -I/usr/local/include/libpng -I/usr/local/include -I/usr/include
- LDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib -lXft -lX11 -lfreetype -lXrender -lfontconfig -lpng -lz -lm -lXmu -lpng -ljpeg
- CUSTOM=-DNEEDS_BASENAME
- PREFIX=/usr
- CFGDIR=/etc
- MANDIR=/usr/share/man
- DESTDIR=
- #######################################################
- NAME=slim
- VERSION=1.3.1
- DEFINES=-DPACKAGE=\"$(NAME)\" -DVERSION=\"$(VERSION)\" \
- -DPKGDATADIR=\"$(PREFIX)/share/slim\" -DSYSCONFDIR=\"$(CFGDIR)\"
- OBJECTS=jpeg.o png.o main.o image.o numlock.o cfg.o switchuser.o app.o panel.o
- .SUFFIXES: .c.o .cpp.o
- all: slim
- slim: $(OBJECTS)
- $(CXX) $(LDFLAGS) $(OBJECTS) -o $(NAME)
- main.o:
- $(CXX) $(CFLAGS) $(DEFINES) $(CUSTOM) -c main.cpp -o $@
- image.o:
- $(CXX) $(CFLAGS) $(DEFINES) $(CUSTOM) -c image.cpp -o $@
- numlock.o:
- $(CXX) $(CFLAGS) $(DEFINES) $(CUSTOM) -c numlock.cpp -o $@
- cfg.o:
- $(CXX) $(CFLAGS) $(DEFINES) $(CUSTOM) -c cfg.cpp -o $@
- switchuser.o:
- $(CXX) $(CFLAGS) $(DEFINES) $(CUSTOM) -c switchuser.cpp -o $@
- app.o:
- $(CXX) $(CFLAGS) $(DEFINES) $(CUSTOM) -c app.cpp -o $@
- panel.o:
- $(CXX) $(CFLAGS) $(DEFINES) $(CUSTOM) -c panel.cpp -o $@
- .c.o:
- $(CC) $(CFLAGS) $(DEFINES) $(CUSTOM) -c $< -o $@
- install: slim install-theme
- install -d $(DESTDIR)$(PREFIX)/bin
- install -d $(DESTDIR)$(MANDIR)/man1
- install -d $(DESTDIR)$(CFGDIR)
- install -m 755 slim $(DESTDIR)$(PREFIX)/bin
- install -m 644 slim.1 $(DESTDIR)$(MANDIR)/man1
- test -e $(DESTDIR)$(CFGDIR)/slim.conf || \
- install -m 644 slim.conf $(DESTDIR)$(CFGDIR)
- clean:
- @rm -f slim *.o
- dist:
- @rm -rf $(NAME)-$(VERSION)
- @mkdir $(NAME)-$(VERSION)
- @cp -r *.cpp *.h *.c Makefile Makefile.* COPYING ChangeLog README INSTALL TODO \
- xinitrc.sample slim.1 THEMES themes slim.conf $(NAME)-$(VERSION)
- @rm -rf $(NAME)-$(VERSION)/themes/.svn $(NAME)-$(VERSION)/themes/default/.svn
- @tar cvzf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
- @rm -rf $(NAME)-$(VERSION)
- install-theme:
- install -d -m 755 themes/default \
- $(DESTDIR)$(PREFIX)/share/slim/themes/default
- install -m 644 themes/default/slim.theme \
- $(DESTDIR)$(PREFIX)/share/slim/themes/default/slim.theme
- install -m 644 themes/default/panel.png \
- $(DESTDIR)$(PREFIX)/share/slim/themes/default/panel.png
- install -m 644 themes/default/background.jpg \
- $(DESTDIR)$(PREFIX)/share/slim/themes/default/background.jpg
|