astrometry.js
Version:
Extract star pixel coordinates from a FITS image using JavaScript
65 lines (47 loc) • 1.47 kB
Plain Text
FILES := anqfits qfits_card qfits_convert qfits_error qfits_header \
qfits_image qfits_md5 qfits_table qfits_time qfits_tools qfits_byteswap \
qfits_memory qfits_rw qfits_float
OBJS := $(addsuffix .o,$(FILES)) md5.o
SRCS := $(addsuffix .c,$(FILES)) md5.c
HEADERS := $(addsuffix .h,$(FILES)) qfits_keywords.h qfits_std.h
# md5.h is not listed; doesn't need to be installed.
HEADERS_PATH := $(addprefix $(INCLUDE_DIR)/,$(HEADERS))
QFITS_LIB_FILE := libqfits.a
all: $(QFITS_LIB_FILE)
BASEDIR := ..
COMMON := $(BASEDIR)/util
include $(COMMON)/makefile.common
include $(COMMON)/makefile.anbase
INC := $(ANBASE_INC)
CFLAGS += $(CFLAGS_DEF)
CFLAGS += $(ANBASE_CFLAGS)
CFLAGS += -I.
CFLAGS += $(INC)
LDFLAGS += $(LDFLAGS_DEF)
LDLIBS := $(LDLIBS_DEF)
LDLIBS += $(ANBASE_LIB)
$(QFITS_LIB_FILE): $(OBJS)
-rm -f $@
$(AR) rc $@ $^
$(RANLIB) $@
install: $(QFITS_LIB_FILE) $(HEADERS)
@echo Installing in base directory '$(INSTALL_DIR)'
mkdir -p '$(INCLUDE_INSTALL_DIR)'
mkdir -p '$(LIB_INSTALL_DIR)'
@for x in $(HEADERS); do \
echo cp '$(INCLUDE_DIR)/'$$x '$(INCLUDE_INSTALL_DIR)/'$$x; \
cp '$(INCLUDE_DIR)/'$$x '$(INCLUDE_INSTALL_DIR)/'$$x; \
done
@for x in $(QFITS_LIB_FILE); do \
echo cp $$x '$(LIB_INSTALL_DIR)/'$$x; \
cp $$x '$(LIB_INSTALL_DIR)/'$$x; \
done
DEP_OBJ := $(OBJS)
ifneq ($(MAKECMDGOALS),clean)
include $(COMMON)/makefile.deps
endif
clean:
rm -f $(QFITS_LIB_FILE) $(OBJS) *.dep *~ deps