File: Makefile

package info (click to toggle)
jazip 0.34-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 436 kB
  • ctags: 154
  • sloc: ansic: 2,632; perl: 343; makefile: 91; sh: 32
file content (46 lines) | stat: -rw-r--r-- 1,095 bytes parent folder | download | duplicates (6)
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 for jazip
CC=gcc

CFLAGS=-O -m486

SHAREDLIBFLAGS=-L/usr/X11R6/lib -lforms -lX11 -lm
# If you get lots of symbol reference errors, try the following library order instead
#SHAREDLIBFLAGS=-L/usr/X11R6/lib -lX11 -lm -lforms

STATICLIBFLAGS=-L/usr/X11R6/lib -lX11 -lXpm -lm -Wl,-Bstatic -lforms

BINDIR=/usr/X11R6/bin
DOCDIR=/usr/doc/jaZip-0.34  #if you change this, make the corresponding change in jazip.h

OBJ=	main.o jazip.o scsi.o mount_z.o umount_z.o \
		callback.o messages.o help.o

shared: $(OBJ)
	$(CC) $(CFLAGS) -o jazip $(OBJ) $(SHAREDLIBFLAGS)
	chmod +s jazip

both:	$(OBJ)
	$(CC) $(CFLAGS) -o jazip $(OBJ) $(STATICLIBFLAGS)
	chmod +s jazip
	$(CC) $(CFLAGS) -o jazip.shared $(OBJ) $(SHAREDLIBFLAGS)
	chmod +s jazip.shared

static: $(OBJ)
	$(CC) $(CFLAGS) -o jazip $(OBJ) $(STATICLIBFLAGS)
	chmod +s jazip

$(OBJ): jazip.h pixmaps.h

install:
	cp jazip $(BINDIR)
	-mkdir -p $(DOCDIR)
	cp docs/*.help $(DOCDIR)
	cp jazip.conf /etc/jazip.conf

install-both:
	cp jazip jazip.shared $(BINDIR)
	-mkdir -p $(DOCDIR)
	cp docs/*.help $(DOCDIR)

clean:
	-rm jazip jazip.shared $(OBJ)