File: Makefile

package info (click to toggle)
wm2 3-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 252 kB
  • ctags: 420
  • sloc: cpp: 3,661; makefile: 57; sh: 48
file content (28 lines) | stat: -rw-r--r-- 494 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
25
26
27
28

# if you want pixmaps you'll need Xpm, so add -lXpm to the next line
LIBS	=  -L/usr/X11R6/lib -lXext -lX11 -lXmu -lm

CC	= gcc
CCC	= gcc
CFLAGS	= -O2
OBJECTS	= Border.o Buttons.o Client.o Events.o Main.o Manager.o Rotated.o listimpl.o

.c.o:
	$(CC) -c $(CFLAGS) $<

.C.o:
	$(CCC) -c $(CFLAGS) $<

wm2:	$(OBJECTS)
	mv -f wm2 wm2.old >& /dev/null || true
	$(CCC) -o wm2 $(OBJECTS) $(LIBS)

depend:
	makedepend -- $(CFLAGS) -- *.C

clean:
	rm -f *.o core

distclean: clean
	rm -f wm2 wm2.old *~