File: GNUmakefile

package info (click to toggle)
gdal 3.2.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 104,864 kB
  • sloc: cpp: 1,120,399; ansic: 184,132; python: 25,552; perl: 7,931; sh: 7,217; java: 5,382; xml: 3,609; cs: 2,418; yacc: 1,081; makefile: 519; sql: 112
file content (32 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (5)
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

include ../../GDALmake.opt

OBJ	=	ecwdataset.o ecwcreatecopy.o jp2userbox.o ecwasyncreader.o

CPPFLAGS	:=	 -DFRMT_ecw $(CPPFLAGS) \
	$(ECW_FLAGS) $(ECW_INCLUDE) $(EXTRA_CFLAGS) -DDO_NOT_USE_DEBUG_BOOL
PLUGIN_SO =	gdal_ECW_JP2ECW.so

default:	$(OBJ:.o=.$(OBJ_EXT))

clean:
	rm -f *.o $(O_OBJ) *.so

install-obj:	$(O_OBJ:.o=.$(OBJ_EXT))

$(OBJ) $(O_OBJ):	gdal_ecw.h

plugin: $(PLUGIN_SO)

$(PLUGIN_SO):	$(OBJ)
	$(LD_SHARED) $(LNK_FLAGS) $(OBJ) $(CONFIG_LIBS) $(EXTRA_LIBS) \
		-o $(PLUGIN_SO)
 
dist:
	cp -r pkg libgdal-ecw-$(GDAL_VER)
	rm -rf libgdal-ecw-$(GDAL_VER)/.svn
	cp *.cpp libgdal-ecw-$(GDAL_VER)
	cp *.h libgdal-ecw-$(GDAL_VER)
	tar czvf libgdal-ecw-$(GDAL_VER).tar.gz ./libgdal-ecw-$(GDAL_VER)
	rm -rf libgdal-ecw-$(GDAL_VER)