File: Makefile.orig

package info (click to toggle)
dclock 2.2.2-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: ansic: 2,071; makefile: 749
file content (43 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download | duplicates (9)
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
#
# This is a Makefile for those people not using xmkmf to compile dclock.
#
# Remember to add the path to your X include files to CFLAGS and to 
# add the path to your X libraries to the front of LIBS. 
# 
prefix= /usr/local
bindir= $(prefix)/bin
mandir= $(prefix)/man/man1
appdir= ${prefix}/etc/X11/app-defaults

PROGRAM= dclock
SRCS= Dclock.c dclock.c
OBJS= Dclock.o dclock.o
HFILES= Dclock.h DclockP.h patchlevel.h
ADFILE= DClock

CC= gcc
CFLAGS= -O
LDFLAGS= 
LIBS= -lm -lXt -lX11

$(PROGRAM): ${OBJS}
	${CC} ${LDFLAGS} ${OBJS} ${LIBS} -o $(PROGRAM)

$(ADFILE): Dclock.ad
	cp -p $< $@

clean: ; rm -f ${OBJS} core $(PROGRAM) $(ADFILE)

install: $(PROGRAM) $(ADFILE)
	install -d $(bindir) $(mandir)
	install --mode=0755 $(PROGRAM) $(bindir)
	install --mode=0644 $(ADFILE) $(appdir)
	install -d ${prefix}/man/man1
	install -d ${prefix}/bin
	install -d ${prefix}/etc/X11/app-defaults
	

shar: ; shar README Makefile dclock.man ${HFILES} ${SRCS} > dclock.shar

tar: ; tar fcv - README Makefile dclock.man ${HFILES} ${SRCS} | \
        compress > dclock.tar.Z