-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
48 lines (34 loc) · 935 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Makefile for X-on-screen display
#
PREFIX=/usr/local
EXEC_PREFIX=$(PREFIX)
BINDIR=$(EXEC_PREFIX)/bin
LIBDIR=$(EXEC_PREFIX)/lib
MANDIR=$(PREFIX)/man
INCLUDEDIR=$(PREFIX)/include
CC=gcc
INSTALL=/usr/bin/install -c
INSTALL_DATA=$(INSTALL) -m 644
CFLAGS=-O2 -Wall -pipe -I. -DXOSD_VERSION=\"$(VERSION)\" -I/usr/X11R6/include
LDFLAGS=-L. -L/usr/X11R6/lib -lX11 -lXext -lpthread -lXt
XOSDLIBS=-lxosd
SOURCES=ChangeLog README COPYING Makefile \
osd_clock.c osd_clock.1
ARFLAGS=cru
all: osd_clock
%.o: %.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
%.o.pic: %.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ -fPIC
osd_clock: osd_clock.o
$(CC) -o $@ osd_clock.o $(LDFLAGS) $(XOSDLIBS)
tar: xosd-$(VERSION).tar.gz
install: all
$(INSTALL) osd_clock $(BINDIR)
mkdir -p $(MANDIR)/man1 $(MANDIR)/man3
$(INSTALL_DATA) osd_clock.1 $(MANDIR)/man1/
clean:
rm -f *~ *.o *.o.pic osd_clock
.PHONY: all tar clean install
# vim: noexpandtab