forked from tTh/FloatImg
41 lines
978 B
Makefile
41 lines
978 B
Makefile
|
||
#
|
||
# some ugly experiments, do not use in production
|
||
#
|
||
|
||
COPT = -Wall -Wextra -fpic -g -DDEBUG_LEVEL=0 -lm
|
||
DEPS = ../floatimg.h ../libfloatimg.a Makefile
|
||
LIBS = ../libfloatimg.a -ltiff -lpnglite -lcfitsio -lm
|
||
|
||
all: assemblage muxplanes movepixels mnt
|
||
|
||
# ---------------------------------------------------------
|
||
|
||
assemblage: assemblage.c ${DEPS}
|
||
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
|
||
|
||
muxplanes: muxplanes.c ${DEPS}
|
||
gcc $(COPT) $< ${LIBS} -o $@
|
||
|
||
movepixels: movepixels.c ${DEPS}
|
||
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
|
||
|
||
mnt: mnt.c ${DEPS}
|
||
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
|
||
|
||
fimg2obj: fimg2obj.c $(DEPS)
|
||
gcc $(COPT) $< ../libfloatimg.a ${LIBS} -o $@
|
||
|
||
# ---------------------------------------------------------
|
||
# CACHE ENGINE
|
||
|
||
cachengn.o: cachengn.c cachengn.h Makefile
|
||
gcc $(COPT) -c $<
|
||
|
||
tcache.o: tcache.c cachengn.h Makefile
|
||
gcc $(COPT) -c $<
|
||
|
||
tcache: tcache.o cachengn.o Makefile
|
||
gcc $(COPT) tcache.o cachengn.o $(LIBS) -o $@
|
||
|