File: Makefile

package info (click to toggle)
aewm%2B%2B-goodies 1.0-9
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 416 kB
  • ctags: 678
  • sloc: cpp: 3,366; ansic: 963; makefile: 162; sh: 13
file content (25 lines) | stat: -rw-r--r-- 494 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
CC        = g++
CFLAGS    = -g -O2 -Wall
prefix     = /usr
INCLUDES  = -I$(prefix)/include
LIBS      = -lX11 -lXext
LDPATH    = -L/usr/X11R6/lib

PROG      = aewm++_setrootimage
#DEFINES   = -DDEBUG

OBJS      = setrootimage.o linkedlist.o image.o

all: $(PROG) 

$(PROG): $(OBJS)
	$(CC) $(OBJS) $(LDPATH) $(LIBS) -o $@

$(OBJS): %.o: %.cc $(HEADERS)
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -c $< -o $@

install: all
	install $(PROG) $(DESTDIR)$(prefix)/bin

clean:
	rm -f $(PROG) $(OBJS) core