maje.h 503 B

1234567891011121314151617181920
  1. #ifndef MAJE_H
  2. #define MAJE_H
  3. #include <sys/stat.h>
  4. struct majefile {
  5. struct majefile *next;
  6. struct majefile *prev;
  7. struct stat st;
  8. char path[];
  9. };
  10. struct majefile *find_source_files(const char *path);
  11. char *find_main(struct majefile *sources);
  12. struct majefile *find_includes(const struct majefile *file);
  13. void make_makefile(const char *makefile, struct majefile *sources, const char *target);
  14. struct majefile *insert_file(struct majefile *list, const char *path, const struct stat *st);
  15. #endif