File: Makefile

package info (click to toggle)
wmcpu 1.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, lenny, sid, squeeze, stretch, wheezy
  • size: 108 kB
  • ctags: 26
  • sloc: ansic: 323; makefile: 20
file content (24 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CC		= gcc
CFLAGS		= -O3 -Wall
#DEBUG FLAGS HERE:
#CFLAGS		+= -g -ggdb
LDFLAGS		= -L/usr/X11R6/lib -lXpm -lXext -lX11
OBJS		= wmcpu.o

# where to install this program (also for packaging stuff)
DESTDIR		=
PREFIX		= $(DESTDIR)/usr/X11R6
INSTALL		= -m 755

.PHONY: all clean

all: wmcpu

wmcpu: $(OBJS)
	$(CC) $(CFLAGS) -o wmcpu $(OBJS) $(LDFLAGS)

clean:
	rm -rf *.o wmcpu *~

install: wmcpu
	install $(INSTALL) wmcpu $(PREFIX)/bin