-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStirfile
More file actions
32 lines (25 loc) · 992 Bytes
/
Stirfile
File metadata and controls
32 lines (25 loc) · 992 Bytes
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
@toplevel
@strict
$SRC_LIB=["libsimul.c"]
$SRC_PROG=["buck.c", "buckramp.c", "buckgood.c", "inverterpwm.c", "rectifier.c", "transformer.c", "forward.c", "forwardgood.c", "flyback.c", "flybackgood.c", "pfcboost.c", "rectifier3.c", "pfc3.c", "inverterpwm3.c", "pfcsimple3.c", "shockleyrectifier.c", "boostgood.c", "buckboostgood.c"]
$PROG=@sufsuball($SRC_PROG, ".c", "")
$SRC=[@$SRC_LIB, @$SRC_PROG]
$OBJ=@sufsuball($SRC, ".c", ".o")
$OBJ_LIB=@sufsuball($SRC_LIB, ".c", ".o")
$DEP=@sufsuball($SRC, ".c", ".d")
$CC="cc"
$AR="ar"
$RM="rm"
$CFLAGS=["-Wall", "-O3", "-g"]
$LIBS=["-llapack", "-lm"]
@phonyrule: 'all': $PROG
@patrule: $OBJ: '%.o': '%.c' '%.d'
@ [$CC, @$CFLAGS, "-c", "-o", $@, $<]
@patrule: $DEP: '%.d': '%.c'
@ [$CC, @$CFLAGS, "-M", "-o", $@, $<]
'libsimul.a': $OBJ_LIB
@ [$RM, "-f", $@]
@ [$AR, "rvs", $@, @$^]
@patrule: $PROG: '%': '%.o' 'libsimul.a'
@ [$CC, "-o", $@, @@suffilter($^, ".o"), @@suffilter($^, ".a"), @$LIBS]
@cdepincludes @autophony @autotarget @ignore $DEP