File: Makefile

package info (click to toggle)
xdesktopwaves 1.3-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 316 kB
  • sloc: ansic: 3,842; makefile: 50
file content (49 lines) | stat: -rw-r--r-- 1,471 bytes parent folder | download | duplicates (3)
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
# 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/X11R6/bin
MAN1DIR = /usr/X11R6/man/man1
INSTALL = install
RM      = rm -f -v

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

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

install: xdesktopwaves xdesktopwaves.1
	$(INSTALL) -c -m 0755 -s xdesktopwaves $(BINDIR)/xdesktopwaves
	$(INSTALL) -c -m 0444 xdesktopwaves.1 $(MAN1DIR)/xdesktopwaves.1

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