File: makefile

package info (click to toggle)
twlog 1.2-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 276 kB
  • ctags: 171
  • sloc: ansic: 1,246; makefile: 91; sh: 8
file content (45 lines) | stat: -rw-r--r-- 1,207 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# MAKEFILE FOR TWLOG

CC        =   gcc
CFILES    =   twlog.c logWid.c logCB.c logDiag.c
HFILE     =   twlog.h
OFILES    =   $(CFILES:.c=.o)
MISC      =   Twlog helpfile makefile README twlog.xbm\
              twlog.xpm twlog-1.1.lsm tags 
SAVEFILES =   $(CFILES) $(HFILE) $(MISC)
LIBDIR    =   -L/usr/X11R6/lib 
INCLUDE   =   -I/usr/X11R6/include
DYNLIBS   =   -lXm -lXt -lX11 -lXext -lXpm
STATLIBS  =   -lXm -lXext -lXt -lX11 -lSM -lICE 

twlog:		 
		$(CC) $(CFLAGS) -o $@ twlog.c logWid.c logCB.c logDiag.c \
		$(INCLUDE) $(LIBDIR) $(DYNLIBS)

static:		$(OFILES)
		$(CC) $(CFLAGS) $(OFILES) -o twlog.static -static\
		      $(LIBDIR) $(STATLIBS)

dynamic:	twlog
		cp twlog twlog.dynamic

all:		twlog

install:	all
		install -s -o root -g root twlog $(DESTDIR)/usr/X11R6/bin
		install -m 0644 Twlog $(DESTDIR)/usr/X11R6/lib/X11/app-defaults
		install -m 0644 twlog.xpm $(DESTDIR)/usr/X11R6/include/X11/pixmaps
		install -m 0644 mini.twlog.xpm $(DESTDIR)/usr/X11R6/include/X11/pixmaps
		install -m 0644 twlog.1x $(DESTDIR)/usr/X11R6/man/man1

$(OFILES):	$(HFILE)

clean:
		rm -f core  $(OFILES)  *.BAK twlog

spotless:	clean
		rm -f twlog twlog.static twlog.dynamic

backup:
		cp $(SAVEFILES) savedir