-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
31 lines (21 loc) · 812 Bytes
/
Makefile
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
#CC= $(firstword $(wildcard /usr/local/bin/gcc /usr/bin/gcc))
CC=gcc
CFLAGS= -std=c99 -pedantic -Wall -g -m64 -fstrict-aliasing
#CFLAGS= -std=c99 -pedantic -Wall -O3 -m64 -fstrict-aliasing -fopenmp -march=athlon64
LIBS= -L/usr/local/lib -ltiff -ljpeg -lpng -lz -lm
INCS= -I/usr/local/include
#-------------------------------------------------------------------------------
TOOLS = envremap envtoirr
all : $(TOOLS)
envremap : envremap.o
envtoirr : envtoirr.o
#-------------------------------------------------------------------------------
# Define implicit rules building all tools.
% : %.c
%.o : %.c
$(CC) $(CFLAGS) $(INCS) -o $@ -c $<
% : %.o
$(CC) $(CFLAGS) $(LIBS) -o $@ $^
clean :
rm -f $(TOOLS) $(UTILS) *.o
#-------------------------------------------------------------------------------