File: Construct

package info (click to toggle)
dnrd 2.7-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 272 kB
  • ctags: 250
  • sloc: ansic: 2,442; makefile: 71; sh: 19
file content (33 lines) | stat: -rw-r--r-- 637 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
#
# Construct file for DNRD
#
# Simply run "cons" in the same directory as this file, and everything
# will be built under a directory called "build", and the final
# executable will be installed in a directory called "final".
#

Link 'build' => 'src';

$CONS = new cons(
    CC       => 'gcc',
    COPT     => '-O2 ',
    CDEF     => '-D_REENTRANT',
    CWARN    => '-Wall -Werror',
    CDBG     => '-ggdb',
    CFLAGS   => '%CWARN %COPT %CDEF %CDBG',
    LIBS     => '-lpthread',
    ENV      => { PATH => '/bin:/usr/bin' },
);

$FINAL = '#final';

Export qw(
    CONS
    FINAL
);

Default("final");

Build qw(
    build/Conscript
);