File: compile.ami

package info (click to toggle)
glfw 2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,180 kB
  • ctags: 2,274
  • sloc: ansic: 16,424; sh: 424; asm: 306; makefile: 227; pascal: 86
file content (61 lines) | stat: -rw-r--r-- 1,622 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.key MAKE,COMPILER
.bra {
.ket }

;*************************************************************************
;* compile.ami - AmigaDOS compilation script
;* $Date: 2003/02/02 20:51:40 $
;* $Revision: 1.2 $
;*
;* This is a "helper" script for the top-level Makefile for GLFW.
;*
;* Usage 1: compile MAKEPROG SUFFIX
;*
;* MAKEPROG  Name of make program (e.g. make or nmake)
;* SUFFIX    Makefile suffix for a specific compiler (e.g. msvc)
;*
;* Usage 2: compile CLEAN
;*************************************************************************

; Do we want to do a cleanup?
IF "{MAKE}" EQ "CLEAN"
  Echo "Cleaning up..."
  delete >NIL: lib/amigaos/#?.o QUIET
  delete >NIL: lib/amigaos/glfw.lib QUIET
  delete >NIL: lib/amigaos/libglfw.a QUIET
  delete >NIL: examples/boing QUIET
  delete >NIL: examples/gears QUIET
  delete >NIL: examples/keytest QUIET
  delete >NIL: examples/listmodes QUIET
  delete >NIL: examples/mipmaps QUIET
  delete >NIL: examples/mtbench QUIET
  delete >NIL: examples/mthello QUIET
  delete >NIL: examples/particles QUIET
  delete >NIL: examples/pong3d QUIET
  delete >NIL: examples/splitview QUIET
  delete >NIL: examples/triangle QUIET
  delete >NIL: examples/wave QUIET
  Skip done
EndIF

; Did we get a proper make program name?
IF "{COMPILER}" EQ ""
  echo >T:mymake{$$} "make -f Makefile.amigaos.{MAKE}"
Else
  echo >T:mymake{$$} "{MAKE} -f Makefile.amigaos.{COMPILER}"
EndIF
protect T:mymake{$$} SRWED add

; Compile GLFW library
cd lib/amigaos
T:mymake{$$}

; Compiler GLFW example programs
cd //examples
T:mymake{$$}
cd /

; Remove temporary file
delete >NIL: T:mymake{$$} QUIET

Lab done