~ubuntu-branches/debian/sid/eso-midas/sid

« back to all changes in this revision

Viewing changes to .pc/propagate_buildflags.patch/system/machine/makefile

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-sl34juxohmn4aty4
Tags: 13.09pl1.2+dfsg-1
Initial release. (Closes: #740702)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# .COPYRIGHT:   Copyright (c) 1988-2011 European Southern Observatory,
 
2
#                                               all rights reserved
 
3
# .TYPE         make file
 
4
# .NAME         $MIDASHOME/$MIDVERS/system/machine/makefile
 
5
# .LANGUAGE     makefile syntax
 
6
# .ENVIRONMENT  Unix Systems.
 
7
# .REMARKS
 
8
# .AUTHOR       ESO-IPG, Garching
 
9
# .VERSION 1.0  901219
 
10
# .VERSION 2.0  920305
 
11
# .VERSION 2.2  920521:         Removing SLIB CG
 
12
# .VERSION 3.0  930308:         Using default.mk file
 
13
# .VERSION 4.0  940328:         Compiles with -DNO_VALUES_H if error.
 
14
# .VERSION 4.1  111024:         Delete computer.h before
 
15
 
 
16
 
 
17
include ../../local/default.mk
 
18
 
 
19
DEV_NULL= >/dev/null 2>&1
 
20
 
 
21
M = ../exec
 
22
 
 
23
OUT =   $(M)/computer.exe $(INC)/computer.h
 
24
 
 
25
# DEPENDENCIES:
 
26
all: $(OUT) 
 
27
 
 
28
$(M)/computer.exe: computer.o
 
29
        rm -f $(INC)/computer.h
 
30
        $(LDCC) computer.o $(MLIB) $(SLIB) -o $@
 
31
        $(STRIP) $@
 
32
 
 
33
computer.o: computer.c
 
34
        $(CC) $(CFLAGS) -c computer.c $(DEV_NULL) ||  \
 
35
        $(CC) $(CFLAGS) -DNO_FLOAT_H  -c computer.c $(DEV_NULL)
 
36
 
 
37
$(INC)/computer.h: $(M)/computer.exe
 
38
        $(M)/computer.exe $@
 
39
 
 
40
clean_exec:
 
41
        rm -f $(OUT)
 
42
clean:
 
43
        rm -f *.o