File: Makefile

package info (click to toggle)
xdesktopwaves 1.3-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 324 kB
  • ctags: 271
  • sloc: ansic: 3,842; makefile: 101
file content (65 lines) | stat: -rw-r--r-- 1,952 bytes parent folder | download | duplicates (2)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Makefile for xdesktopwaves

#===================== Configuration for inline assembler ======================

# This should be adapted if you get errors from the assembler: Which level of
# instruction set is supported by the x86 assembler behind gcc? 2 means MMX and
# SSE2, 1 means just MMX and no SSE2, and 0 means no MMX and no SSE2. (support
# by the CPU is checked at run-time)

XDW_MAX_OPTIMIZATION=2

#=========================== C compiler configuration ==========================

CC     = gcc
CFLAGS = -I/usr/X11R6/include -O2

#============================= Linker configuration ============================

LINK   = gcc
LFLAGS = -L/usr/X11R6/lib
LIBS   = -lm -lX11 -lXext

#============================ Installer configuration ==========================

BINDIR  = /usr/games
MAN1DIR = /usr/share/man/man1
PIXMAPS = /usr/share/pixmaps
INSTALL = install
RM      = rm -f -v

# DESTDIR Added for Debian packaging
DESTDIR =

INST_OWN = -o root -g root
MAKE_DIR  = $(INSTALL) -p -d $(INST_OWN) -m 755
INST_FILE = $(INSTALL) -c    $(INST_OWN) -m 444
INST_PROG = $(INSTALL) -c    $(INST_OWN) -m 755 -s

#===============================================================================

all: xdesktopwaves

xdesktopwaves.o: xdesktopwaves.c
	$(CC) $(CFLAGS) -DXDW_MAX_OPTIMIZATION=$(XDW_MAX_OPTIMIZATION) -c xdesktopwaves.c -o xdesktopwaves.o

xdesktopwaves: xdesktopwaves.o
	$(LINK) $(LFLAGS) xdesktopwaves.o $(LIBS) -o xdesktopwaves

clean:
	$(RM) xdesktopwaves.o

distclean: clean
	$(RM) xdesktopwaves

install: xdesktopwaves xdesktopwaves.1
	$(MAKE_DIR) $(DESTDIR)$(BINDIR)/
	$(MAKE_DIR) $(DESTDIR)$(MAN1DIR)/
	$(MAKE_DIR) $(DESTDIR)$(PIXMAPS)/
	$(INST_PROG) xdesktopwaves $(DESTDIR)$(BINDIR)/xdesktopwaves
	$(INST_FILE) xdesktopwaves.1 $(DESTDIR)$(MAN1DIR)/xdesktopwaves.1
	$(INST_FILE) xdesktopwaves.xpm $(DESTDIR)$(PIXMAPS)/xdesktopwaves.xpm

uninstall:
	$(RM) $(DESTDIR)$(BINDIR)/xdesktopwaves
	$(RM) $(DESTDIR)$(MAN1DIR)/xdesktopwaves.1