1# Makefile for xdesktopwaves 2 3#===================== Configuration for inline assembler ====================== 4 5# This should be adapted if you get errors from the assembler: Which level of 6# instruction set is supported by the x86 assembler behind gcc? 2 means MMX and 7# SSE2, 1 means just MMX and no SSE2, and 0 means no MMX and no SSE2. (support 8# by the CPU is checked at run-time) 9 10XDW_MAX_OPTIMIZATION=2 11 12#=========================== C compiler configuration ========================== 13 14#CC = gcc 15CFLAGS = -I$(LOCALBASE)/include 16 17#============================= Linker configuration ============================ 18 19LINK = $(CC) 20LFLAGS = -L$(LOCALBASE)/lib 21LIBS = -lm -lX11 -lXext 22 23#============================ Installer configuration ========================== 24 25BINDIR = $(LOCALBASE)/bin 26MAN1DIR = $(LOCALBASE)/man/man1 27INSTALL = install 28RM = rm -f -v 29 30#=============================================================================== 31 32all: xdesktopwaves 33 34xdesktopwaves.o: xdesktopwaves.c 35 $(CC) $(CFLAGS) -DXDW_MAX_OPTIMIZATION=$(XDW_MAX_OPTIMIZATION) -c xdesktopwaves.c -o xdesktopwaves.o 36 37xdesktopwaves: xdesktopwaves.o 38 $(LINK) $(LFLAGS) xdesktopwaves.o $(LIBS) -o xdesktopwaves 39 40clean: 41 $(RM) xdesktopwaves.o 42 43install: xdesktopwaves xdesktopwaves.1 44 $(INSTALL) -c -m 0755 -s xdesktopwaves ${DESTDIR}$(BINDIR)/xdesktopwaves 45 $(INSTALL) -c -m 0444 xdesktopwaves.1 ${DESTDIR}$(MAN1DIR)/xdesktopwaves.1 46 47uninstall: 48 $(RM) $(BINDIR)/xdesktopwaves 49 $(RM) $(MAN1DIR)/xdesktopwaves.1 50