summaryrefslogtreecommitdiff
path: root/maje.h
blob: 6f0af8da2349dd463ed741e49183c225561964b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MAJE_H
#define MAJE_H

#include <sys/stat.h>

struct majefile {
	struct majefile *next;
	struct majefile *prev;
	struct stat st;
	char path[];
};

struct majefile *find_source_files(const char *path);
char *find_main(struct majefile *sources);
struct majefile *find_includes(const struct majefile *file);
void make_makefile(const char *makefile, struct majefile *sources, const char *target);
struct majefile *insert_file(struct majefile *list, const char *path, const struct stat *st);

#endif