-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakedefs
More file actions
27 lines (20 loc) · 830 Bytes
/
makedefs
File metadata and controls
27 lines (20 loc) · 830 Bytes
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
# This file is included by sub-directory makefiles after defining `topdir`
# to be path to this file.
# include user-defined definitions if make.user exists
ifeq (exists, $(shell [ -e $(topdir)/make.user ] && echo exists ))
include $(topdir)/make.user
endif
# list of all files in include directory (dependency for compilation)
HEADERS = $(shell find $(topdir)/include -type f)
# Target library
LIB = $(O)/libpreprocess.a
CFLAGS = -DANSI -DFITS -DSYSV -I$(topdir)/include -I$(topdir)/extern -I$(IFUIO_INC)
CCOMPILE = $(CC) $(DEBUG) $(CFLAGS) -c $< && mv $(@F) $@
CXXCOMPILE = $(CXX) $(DEBUG) $(CFLAGS) -Wno-write-strings -c $< && mv $(@F) $@
CXXLINK = $(CXX) -o $@ $< $(LIB) $(IFUIO_LIBS) -lc -lm -lwcs -lcfitsio -lgsl -lcblas
RANLIB = ranlib
STRIP = strip
AR = ar
# output directories
E = $(topdir)/exec
O = $(topdir)/obj