File: Makefile

package info (click to toggle)
wmmatrix 0.2-12
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 352 kB
  • ctags: 154
  • sloc: ansic: 753; makefile: 26; sh: 13
file content (38 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (7)
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
CC     = gcc
CFLAGS = -O2 -Wall 
INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
DESTDIR= /usr/X11R6
LIBDIR = -L/usr/X11R6/lib

# for Linux
LIBS   = -lXpm -lX11 -lXext

# for Solaris
#LIBS   = -lXpm  -lX11 -lXext -lsocket -lnsl


OBJS   = wmMatrix.o matrix.o xutils.o yarandom.o




.c.o:
	$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)


all:	wmMatrix.o wmMatrix 

wmMatrix.o: wmMatrix_master.xpm wmMatrix_mask.xbm
wmMatrix:	$(OBJS) 
	$(CC) $(COPTS) $(SYSTEM) -o wmMatrix $^ $(INCDIR) $(LIBDIR) $(LIBS)


clean:
	for i in $(OBJS) ; do \
		rm -f $$i; \
	done
	rm -f wmMatrix

install:: wmMatrix
	install -c -s -m 0755 wmMatrix $(DESTDIR)/bin