File: Makefile

package info (click to toggle)
wmbinclock 0.5-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 164 kB
  • ctags: 74
  • sloc: ansic: 977; makefile: 62; sh: 33
file content (52 lines) | stat: -rw-r--r-- 1,510 bytes parent folder | download | duplicates (3)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# wmbinclock Makefile by Thomas Kuiper <tkuiper@inxsoft.net>
#
# Copyright (C) 2003 Thomas Kuiper <tkuiper@inxsoft.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program (see the file COPYING); if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA  02111-1307, USA
#
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 -lm
# for Solaris
# LIBS   = -lXpm -lX11 -lXext -lsocket
OBJS   = wmBinClock.o \
         xutils.o


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


all:	wmBinClock.o wmBinClock

wmBinClock.o: wmBinClock_master.xpm wmBinClock_mask.xbm
wmBinClock:	$(OBJS) 
	$(CC) $(CFLAGS) $(SYSTEM) -o wmBinClock $^ $(INCDIR) $(LIBDIR) $(LIBS)

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

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