File: Makefile

package info (click to toggle)
xvmount 3.7-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 152 kB
  • ctags: 68
  • sloc: ansic: 448; sh: 255; makefile: 90
file content (46 lines) | stat: -rw-r--r-- 1,270 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
46
#
#       @(#)Makefile.customer 1.6 90/06/19 
#
#	Makefile for the panels example programs for XView programmers
#

# 	Modify for a different location
DESTDIR = /usr/local
CONFDIR = /etc

# 	OPENWINHOME has to be defined outside
INCLUDE 	= -I$(OPENWINHOME)/include

# If you want to compile for debugging, change "-O" to "-g"
#CFLAGS		= ${INCLUDE} -g -DDEBUG -DDONT_MOUNT
#CFLAGS		= ${INCLUDE} -g -DDEBUG 

CFLAGS		= $(INCLUDE) -g -Wall $(PASS)
LDFLAGS         = 
XVIEW_LIBS 	= -L$(OPENWINHOME)/lib -lxview -lolgx -lX11

OBJS	   	=  xvmount.o 

all:  xvmount
debug: xvmount

xvmount: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LDFLAGS) $(XVIEW_LIBS)

strip: xvmount
	strip xvmount

clean:
	rm -f core $(OBJS) xvmount

install:
	test -d $(DESTDIR)/bin || install -d $(DESTDIR)/bin
	install $(STRIP) -m 'a+rx,u+w' xvmount $(DESTDIR)/bin/xvmount
	test -d $(DESTDIR)/share/man || install -d $(DESTDIR)/share/man
	test -d $(DESTDIR)/share/man/man1 || install -d $(DESTDIR)/share/man/man1
	install -m 0644 xvmount.1 $(DESTDIR)/share/man/man1/xvmount.1
# Removed due to the existence of the configuration script now
#	test -d $(CONFDIR) || install -d $(CONFDIR)
#	install -m 0644 xvmounttab $(CONFDIR)/xvmounttab
#	@echo " Please, modify $(CONFDIR)/xvmounttab to meet your system needs!"