This commit is contained in:
Kevin Keogh
2017-04-02 16:21:15 -04:00
parent 75190e2d31
commit fe5c68f149
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ CFLAGS=-Wall -fPIC -O3 -ansi -pedantic-errors
LDFLAGS=-lgsl -lcblas -lm LDFLAGS=-lgsl -lcblas -lm
PREFIX= /usr/local PREFIX= /usr/local
optpricer : src/optpricer.c gbm.o black_scholes.o opt-pricer : src/opt-pricer.c gbm.o black_scholes.o
@$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ @$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
gbm.o : src/gbm_mc.c gbm.o : src/gbm_mc.c
@@ -13,14 +13,14 @@ black_scholes.o : src/black_scholes.c
@$(CC) $(CFLAGS) -c $^ $(LDFLAGS) -o $@ @$(CC) $(CFLAGS) -c $^ $(LDFLAGS) -o $@
.PHONY: install .PHONY: install
install : optpricer install : opt-pricer
@mkdir -p $(DESTDIR)$(PREFIX)/bin @mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp $< $(DESTDIR)$(PREFIX)/bin/optpricer @cp $< $(DESTDIR)$(PREFIX)/bin/opt-pricer
@rm -f $< @rm -f $<
.PHONY: uninstall .PHONY: uninstall
uninstall : uninstall :
@rm -f $(DESTDIR)$(PREFIX)/bin/optpricer @rm -f $(DESTDIR)$(PREFIX)/bin/opt-pricer
.PHONY: clean .PHONY: clean
clean : clean :