File: Makefile

package info (click to toggle)
tinyexr 1.0.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,184 kB
  • sloc: cpp: 12,561; makefile: 110; sh: 18; ansic: 15
file content (28 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (3)
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
INC_DIR = -I../../ -I../common -I ../../deps/miniz

INCLUDES := ../../tinyexr.h
OBJS := miniz.o tinyexr.o cube2longlat.o

CFLAGS := -fsanitize=address -O2
CXXFLAGS := $(CFLAGS) -std=c++11
LDFLAGS := -fsanitize=address

TARGET=cube2longlat
 
all: $(TARGET)

$(TARGET): $(OBJS)
	$(CXX) -o $(TARGET) $(LDFLAGS) $(OBJS)

miniz.o: ../../deps/miniz/miniz.c
	$(CC) $(CFLAGS) -c $(INC_DIR) $<

tinyexr.o: ../../tinyexr.cc
	$(CXX) $(CXXFLAGS) -c $(INC_DIR) $<

cube2longlat.o: cube2longlat.cc
	$(CXX) $(CXXFLAGS) -c $(INC_DIR) $<

.PHONY: clean
clean:
	rm -rf $(TARGET) $(OBJS)