File: Makefile

package info (click to toggle)
e00compr 1.0.1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 316 kB
  • sloc: ansic: 1,316; makefile: 66
file content (56 lines) | stat: -rwxr-xr-x 1,177 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Makefile for the Compressed E00 Read/Write library 
#
# $Id: Makefile,v 1.2 1999-02-25 18:57:09 daniel Exp $
#
# $Log: Makefile,v $
# Revision 1.2  1999-02-25 18:57:09  daniel
# Now use CPL for Error handling, Memory allocation, and File access
#
# Revision 1.1  1999/01/08 17:41:17  daniel
# Initial revision
#
#


CC= gcc
CFLAGS+= $(CPPFLAGS)
LFLAGS=$(LDFLAGS)
AR= ar

LIB_OBJS= e00read.o e00write.o cpl_error.o cpl_conv.o cpl_vsisimple.o
LIB=      e00compr.a

default: all

all: e00conv

$(LIB_OBJS): e00compr.h

e00conv: e00conv.o $(LIB)
	$(CC) $(LFLAGS) -o e00conv e00conv.o $(LIB)

ex_read: ex_read.o $(LIB)
	$(CC) $(LFLAGS) -o ex_read ex_read.o $(LIB)

ex_readcb: ex_readcb.o $(LIB)
	$(CC) $(LFLAGS) -o ex_readcb ex_readcb.o $(LIB)

ex_write: ex_write.o $(LIB)
	$(CC) $(LFLAGS) -o ex_write ex_write.o $(LIB)

ex_writecb: ex_writecb.o $(LIB)
	$(CC) $(LFLAGS) -o ex_writecb ex_writecb.o $(LIB)

.c.o:
	$(CC) -c $(CFLAGS) $<

$(LIB): $(LIB_OBJS)
	rm -f $(LIB)
	$(AR) rc $(LIB) $(LIB_OBJS)

clean:	clean-examples
	rm -f e00conv e00conv.o $(LIB) $(LIB_OBJS)

clean-examples:
	rm -f ex_read ex_read.o ex_readcb ex_readcb.o
	rm -f ex_write ex_write.o ex_writecb ex_writecb.o