source: MML/trunk/machine/SOLEIL/common/naff/nafflib/Makefile @ 17

Last change on this file since 17 was 17, checked in by zhangj, 10 years ago

To have a stable version on the server.

  • Property svn:executable set to *
File size: 476 bytes
Line 
1## Makefile for Naff example
2#
3## Laurent S. Nadolski Synchrotron SOLEIL
4#  add with the distribution of M. Gastineau IMCCE
5
6SHELL=/bin/sh
7
8CC = gcc
9CCFLAGS=  -O2
10
11SRC = modnaff.c example.c complexe.c
12OBJ  = $(SRC:.c=.o)
13INC = modnaff.h complexe.h
14
15SYSLIB = -lm
16
17example : $(OBJ) $(INC)
18        @echo "---" $@ "---"
19        $(CC)  $(CCFLAGS) $(OBJ) $(SYSLIB) -o  $@
20
21.c.o: $(INC) 
22        @echo "---" $@ "---"
23        $(CC) $(CCFLAGS) -I. -c $< -o $@
24
25clean: 
26        rm -f $(OBJ) $(OBJLIB)
27       
28# DO NOT DELETE
29
Note: See TracBrowser for help on using the repository browser.