(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

.SECONDEXPANSION:

# simple modules, no extra libraries
MODS =        smpl_00

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

all:	$(MODS)

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

clean:
	$(RM) *.o

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

Karen Tian
Powered by
ViewCVS 0.9.4