-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfile.h
46 lines (36 loc) · 978 Bytes
/
mfile.h
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
#pragma once
#ifndef _AUTO_SCAN_MFILE_H_
#define _AUTO_SCAN_MFILE_H_
#include <string>
#include <vector>
#include <cstdio>
#include "cfile.h"
#include "config.h"
#include "debug.h"
using std::string;
using std::vector;
class mfile {
public:
mfile(vector<cfile> &cfiles, Config &cfg, uint32_t flags);
int output();
private:
void output_header_comments();
void output_build_details_and_compile_to_objects();
void output_build_executable();
void output_dependencies_helper(FILE *m_fout, vector<cfile> &files,
cfile *file);
void output_dependencies();
void output_clean_up();
void output_phony();
void output_part();
void _output_build_path_if_option_b();
void _output_mk_build_if_option_b();
private:
vector<cfile> &m_cfiles;
Config &m_cfg;
// bool m_flag_a;
uint32_t m_flags;
FILE *m_fout;
vector<cfile *> m_executable;
};
#endif //_AUTO_SCAN_MFILE_H_