Writing an Ada actor » GNUmakefile
| 1 |
CPUS := $(shell getconf _NPROCESSORS_ONLN) |
|---|---|
| 2 |
|
| 3 |
default: |
| 4 |
@echo "available targets :" |
| 5 |
@echo " - actors" |
| 6 |
@echo " - library" |
| 7 |
|
| 8 |
.PHONY:actors |
| 9 |
actors: |
| 10 |
po_gnatdist -aP$(NARVAL_ADA_PROJECT_PATH) -p -j$(CPUS) \ |
| 11 |
misc_producers.cfg -Pproducers tp_producer
|
| 12 |
po_gnatdist -aP$(NARVAL_ADA_PROJECT_PATH) -p -j$(CPUS) \ |
| 13 |
misc_consumers.cfg -Pconsumers tp_consumer
|
| 14 |
|
| 15 |
install:actors |
| 16 |
mv -f tp_producer $(HOME)/bin/ |
| 17 |
mv -f tp_consumer $(HOME)/bin/ |
| 18 |
|
| 19 |
clean: |
| 20 |
rm -f *.o *.so *~ tp_producer |
| 21 |
rm -f *.o *.so *~ tp_consumer |
| 22 |
rm -Rf dsa *.ali |
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »