Debian Codegraph @

C/Makefile

raw
1 TOPDIR = $(PWD)/..
2 include ../make.include
3 include ../Make.sys
4
5 #
6 # don't touch below this
7 #
8
9 INCS = $(FFTW3_INCDIR) $(MESCHACH_INCDIR) $(TCL_INCDIR) $(TK_INCDIR) $(GL_INCDIR) $(X_INCDIR) $(EXTERNAL_INCDIR)
10
11 include make-objects
12
13 .SUFFIXES: .o .c
14 .c.o:
15 $(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -c $<
16
17 objects = $(XC_OBJS) $(EXTERNAL_OBJS)
18
19 default: xcrys xctclsh xsf2xsf install
20
21 compile:
22 $(MAKE) $(CYGWIN) TOPDIR=$(TOPDIR)
23
24 #objects: $(objects)
25 #
26 #$(objects): %.o: %.c
27 # $(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -c $<
28
29 xcrys: $(XC_OBJS) $(EXTERNAL_OBJS)
30 $(CC) $(CFLAGS) $(XC_OBJS) $(EXTERNAL_OBJS) \
31 -o xcrys $(FFTW3_LIB) $(MESCHACH_LIB) $(TK_LIB) $(TCL_LIB) $(TOGL_LIB) $(GLU_LIB) $(GL_LIB) $(X_LIB) $(MATH) $(LDLIB) $(EXT_LIB)
32
33 xctclsh: xcTclsh.o
34 $(CC) $(CFLAGS) xcTclsh.o -o xctclsh $(TCL_LIB) $(MATH) $(LDLIB)
35
36 XFS_OBJS = xsf2xsf.o
37 xsf2xsf: $(XFS_OBJS)
38 $(CC) $(CFLAGS) $(XFS_OBJS) -o xsf2xsf $(MATH) $(LDLIB)
39
40
41 install:
42 -cp xcrys ../bin
43 -cp xctclsh ../bin
44 -cp xsf2xsf ../bin
45
46 # Note: this target is executed via the cproto.sh script !!!
47 cproto:
48 cproto $(INCS) $(CFILE)
49
50 clean:
51 -rm -f *.o *~ xcrys xctclsh xsf2xsf
52
53 header:
54 $(TOPDIR)/sys_utils/c_header.sh
55
56 depend:
57 -if test "no`type makedepend`" != "no" ; then makedepend $(INCS) $(XC_OBJS:.o=.c); fi
58