-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakeSuffixRules.in
40 lines (33 loc) · 928 Bytes
/
MakeSuffixRules.in
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
%.o:: %.c
$(info CC $@)
@$(CC) $(CPPFLAGS) $(CFLAGS) -c $< $(OUTPUT_OPTION)
%.o:: %.cc
$(info CXX $@)
@$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< $(OUTPUT_OPTION)
%.o:: %.F90
$(info FC $@)
@$(FC) $(FCFLAGS) -c $< $(OUTPUT_OPTION)
%.lo:: %.cc
$(info CXX $@)
@$(LTCOMP) $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< $(OUTPUT_OPTION)
%.lo:: %.c
$(info CC $@)
@$(LTCOMP) $(CC) $(CPPFLAGS) $(CFLAGS) -c $< $(OUTPUT_OPTION)
ifdef BIBTEX
ifdef PDFLATEX
%.pdf:: $(SRCDIR)/%.tex
TEXINPUTS=$(TEXINPUTS) $(PDFLATEX) $<
BIBINPUTS=$(BIBINPUTS) $(BIBTEX) $(@:%.pdf=%)
TEXINPUTS=$(TEXINPUTS) $(PDFLATEX) $<
TEXINPUTS=$(TEXINPUTS) $(PDFLATEX) $<
TEXINPUTS=$(TEXINPUTS) $(PDFLATEX) $<
endif
ifdef PSLATEX
%.ps:: $(SRCDIR)/%.tex
TEXINPUTS=$(TEXINPUTS) $(PSLATEX) $<
BIBINPUTS=$(BIBINPUTS) $(BIBTEX) $(@:%.ps=%)
TEXINPUTS=$(TEXINPUTS) $(PSLATEX) $<
TEXINPUTS=$(TEXINPUTS) $(PSLATEX) $<
TEXINPUTS=$(TEXINPUTS) $(PSLATEX) $<
endif
endif