File: Makefile

package info (click to toggle)
slrnface 2.1.1-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 128 kB
  • ctags: 98
  • sloc: ansic: 811; makefile: 88
file content (32 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (4)
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
CC = cc

X_INCL = # location of X include files, if needed

# A lot of popular terminals are brain damaged, so we cannot use X
# resources for configuration. In those cases Xt routines won't even be
# called, so you might want to use lazy loading for Xt if your OS supports it.

X_LIBS = -lXt -lX11 # X libs
XF_LIB = -L/usr/X11R6/lib -lcompface # compface library
C_FLAGS = -O

prefix = /usr/local

# No need to configure anything below.

CFLAGS = $(C_FLAGS) $(X_INCL)
LDFLAGS = $(XF_LIB) $(X_LIBS)

slrnface: slrnface.c
	$(CC) $(CFLAGS) -o slrnface slrnface.c $(LDFLAGS)

clean:
	rm -f *.o core slrnface

install: slrnface
	mkdir -p $(prefix)/bin
	mkdir -p $(prefix)/share/man/man1
	mkdir -p $(prefix)/share/slrn/macros
	cp slrnface $(prefix)/bin
	cp slrnface.1 $(prefix)/share/man/man1
	cp slrnface.sl $(prefix)/share/slrn/macros