(file) Return to Makefile CVS log (file) (dir) Up to [Development] / JSOC / proj / cookbook

File: [Development] / JSOC / proj / cookbook / Makefile (download)
Revision: 1.2, Mon Apr 13 16:05:06 2009 UTC (14 years, 5 months ago) by rick
Branch: MAIN
Changes since 1.1: +2 -0 lines
added secondexpansion directive required by newer version of gnu make

include Makevars/Makevars_$(JPLAT).mk

DEST =	.

INCL = -I$(DRMS)/base/include
LIBD = -L$(DRMS)/lib/$(JPLAT)

DLIBS = $(LIBD) -ldrms -lpq -lz -lpthread -lcfitsio -lm


# simple modules, no extra libraries
MODS =        smpl_00

FPLS =	$(addprefix $(DEST)/, $(MODS))

all:	$(MODS)

$(MODS):	$$@.o
	$(LDCMD) -o $(DEST)/$@ $@.o $(DLIBS)
	$(RM) $@.o

	$(RM) *.o

	$(RM) *.o
	$(RM) $(FPLS)
	$(CC) $(CCFLAGS) $(@:.o=.c) $(INCL)

Karen Tian
Powered by
ViewCVS 0.9.4