File: test.m

package info (click to toggle)
vis5d 4.3-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 16,856 kB
  • ctags: 6,127
  • sloc: ansic: 66,158; fortran: 4,470; makefile: 1,683; tcl: 414; sh: 69
file content (34 lines) | stat: -rw-r--r-- 709 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# makefile for test.c conversion program

# The input to the conversion program is your 5-D grid format.
# The ouput is a v5d file.


# By default, the name of the conversion program is 'test'.  You should
# probably use a better name.  Assign that name to PROGRAM here:

PROGRAM = test


# If DEC, add -DLITTLE to CFLAGS
# If DEC or Linux, (Little-endian), add -DLITTLE to CFLAGS
CFLAGS = -c -g
CC = cc
LIBS = -lm


OBJECTS = $(PROGRAM).o binio.o v5d.o


$(PROGRAM): $(OBJECTS)
	$(CC) $(OBJECTS) $(LIBS) -o $@

$(PROGRAM).o: $(PROGRAM).c
	$(CC) $(CFLAGS) -I../src $(PROGRAM).c

binio.o:  ../src/binio.c
	$(CC) $(CFLAGS) ../src/binio.c -o binio.o

v5d.o:  ../src/v5d.c
	$(CC) $(CFLAGS) ../src/v5d.c -o v5d.o