File: Makefile

package info (click to toggle)
pdftoipe 20130124-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 180 kB
  • ctags: 83
  • sloc: cpp: 875; makefile: 28
file content (33 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (2)
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
# --------------------------------------------------------------------
# Makefile for pdftoipe
# --------------------------------------------------------------------

ifdef COMSPEC
  # compiling on Windows?
  CPPFLAGS += -I/c/Home/poppler-0.16.5/poppler \
	-I/c/Home/poppler-0.16.5
  LIBS += -L/c/MinGW/lib -lpoppler
  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

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