Commit 9e3bea26 authored by Ewout Helmich's avatar Ewout Helmich
Browse files

In CVS empty dir lib existed. Starting with git, it needs to be created first

parent 8d5537dc
......@@ -4,46 +4,46 @@
include config.make
AR = ar
AR = ar
ARFLAGS = rc
RM = rm -f
CP = cp -f
# Implicit rules
SUFFIXES = .o .c .h .a .so .sl
COMPILE.c=$(CC) $(CFLAGS) -Iinclude $(RELOC) -c
.c.o:
@(echo "compiling $< ...")
@($(COMPILE.c) -o $@ $<)
SRCS = src/byteswap.c \
src/cache.c \
src/cache.c \
src/expkey.c \
src/fits_h.c \
src/fits_md5.c \
src/fits_p.c \
src/fits_rw.c \
src/ieeefp-compat.c \
src/ieeefp-compat.c \
src/md5.c \
src/pafs.c \
src/pafs.c \
src/pixio.c \
src/qerror.c \
src/simple.c \
src/t_iso8601.c \
src/tfits.c \
src/version.c \
src/xmemory.c
src/version.c \
src/xmemory.c
OBJS = $(SRCS:.c=.o)
default: all
all: $(TARGETS) progs
default: all
all: $(TARGETS) progs
static: lib/libqfits.a
......@@ -51,6 +51,7 @@ dynamic: lib/libqfits.$(DYNSUF)
lib/libqfits.a: $(OBJS)
@(echo "Building static library...")
mkdir -p lib
@($(AR) $(ARFLAGS) lib/libqfits.a $(OBJS))
lib/libqfits.$(DYNSUF): $(OBJS)
......@@ -58,13 +59,13 @@ lib/libqfits.$(DYNSUF): $(OBJS)
@(ld $(SHARED) -o lib/libqfits.$(DYNSUF) $(OBJS))
PROGS = bin/dfits \
bin/dtfits \
bin/fitsmd5 \
bin/fitsort \
bin/flipx \
bin/hierarch28 \
bin/iofits \
bin/replacekey
bin/dtfits \
bin/fitsmd5 \
bin/fitsort \
bin/flipx \
bin/hierarch28 \
bin/iofits \
bin/replacekey
install:
@(echo "Installing library in " $(prefix))
......@@ -76,10 +77,10 @@ install:
#KGB $(CP) include/xmemory.h $(prefix)/include
#KGB $(CP) lib/libqfits.a $(prefix)/lib
#KGB $(CP) $(PROGS) $(prefix)/bin
clean:
$(RM) $(OBJS)
$(RM) $(OBJS)
veryclean:
$(RM) $(OBJS) lib/libqfits.a lib/libqfits.$(DYNSUF)
$(RM) -r build
......@@ -107,7 +108,7 @@ progs:
docs:
@(echo "Building HTML documentation...")
@(cd doc ; $(MAKE))
tests:
cd test ; $(MAKE)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment