source: Sophya/trunk/SophyaProg/Examples/auto_makefile@ 4057

Last change on this file since 4057 was 3427, checked in by ansari, 18 years ago

Corrections/maj mineures ds Examples (README, Makefile ...) , Reza 08/12/2007

  • Property svn:executable set to *
File size: 645 bytes
Line 
1# ------------------ SOPHYA -------------------------
2# Makefile for compiling and linking a simple C++
3# program with SOPHYA class library
4# ---------------------------------------------------
5# GNU make program should be used with this makefile
6# ---------------------------------------------------
7# Usage: make prog_name
8# - compiles prog_name.cc -> prog_name.o
9# - links prog_name.o -> prog_name
10
11
12include $(SOPHYABASE)/include/sophyamake.inc
13
14
15
16%:%.cc
17%:%.o
18%.o:%.cc
19
20.PRECIOUS: % %.o
21
22
23# --- Compilation and linking rules
24%:%.o
25 $(CXXLINK) -o $@ $< $(SOPHYAEXTSLBLIST)
26
27%.o:%.cc
28 $(CXXCOMPILE) -c -o $@ $<
29
30
Note: See TracBrowser for help on using the repository browser.