File: makefile.linux

package info (click to toggle)
libmng 1.0.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 4,100 kB
  • ctags: 6,056
  • sloc: ansic: 67,786; pascal: 1,726; sh: 150; makefile: 142
file content (43 lines) | stat: -rw-r--r-- 954 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
# makefile for mngtree test-program on Linux ELF with gcc

prefix=/usr/local

CC=gcc

INCPATH=$(prefix)/include
LIBPATH=$(prefix)/lib

JPEGLIB=/usr/lib

ALIGN=
# for i386:
#ALIGN=-malign-loops=2 -malign-functions=2

WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
	-Wmissing-declarations -Wtraditional -Wcast-align \
	-Wstrict-prototypes -Wmissing-prototypes #-Wconversion

# for pgcc version 2.95.1, -O3 is buggy; don't use it.

CFLAGS=-I$(INCPATH) -Wall -O3 -funroll-loops -DMNG_USE_SO $(ALIGN) # $(WARNMORE) -g
LDFLAGS=-L. -Wl,-rpath,. -L$(LIBPATH) -Wl,-rpath,$(LIBPATH) \
	-L$(JPEGLIB) -Wl,-rpath,$(JPEGLIB) -lmng -lz -ljpeg -lm

OBJS = mngtree.o

.SUFFIXES:      .c .o

.c.o:
	$(CC) -c $(CFLAGS) -o $@ $*.c

all: mngtree

mngtree: mngtree.o
	$(CC) -o mngtree $(CFLAGS) mngtree.o $(LDFLAGS)

clean:
	/bin/rm -f *.o mngtree 

# DO NOT DELETE THIS LINE -- make depend depends on it.

mngtree.o: mngtree.c