File: Makefile

package info (click to toggle)
ipe-tools 20150406-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 532 kB
  • ctags: 618
  • sloc: cpp: 2,021; python: 1,525; ansic: 1,053; makefile: 72; sh: 11
file content (40 lines) | stat: -rw-r--r-- 1,034 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
# --------------------------------------------------------------------
# Makefile for pdftoipe
# --------------------------------------------------------------------

ifdef COMSPEC
  # compiling on Windows?
  CPPFLAGS += -I/minglibs/include/poppler
  LIBS += -L/minglibs/lib -lpoppler
  LDFLAGS += -static
  TARGET = pdftoipe.exe	
else ifdef IPECROSS
  # cross-compiling for Windows?
  CXX=i686-w64-mingw32-g++
  CPPFLAGS += -I/sw/mingwlibs/include/poppler
  LIBS += -L/sw/mingwlibs/lib -lpoppler
  LDFLAGS += -static
  TARGET = pdftoipe.exe	
else
  CPPFLAGS += $(shell pkg-config --cflags poppler) 
  LIBS += $(shell pkg-config --libs poppler)
  TARGET = pdftoipe
endif

CXXFLAGS += -Wno-write-strings

all: $(TARGET)

objects = parseargs.o xmloutputdev.o pdftoipe.o 

$(TARGET): $(objects)
	$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)

clean:
	@-rm -f $(objects) $(TARGET)

xmloutputdev.o: xmloutputdev.h
pdftoipe.o: xmloutputdev.h parseargs.h
parseargs.o: parseargs.h

# --------------------------------------------------------------------