Skip to content

mderzko-AMC/initproject_c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Init makefile code

Building projects on following file arrangement:

project/
├── lib/
│   ├── lib1.c
│   ├── lib1.h
│   ├── lib2.c
│   ├── lib2.h
│   └── ...
├── test/
│   └─ test.py
├── build/
│   ├── raw/
│   │   ├── libs.out
│   │   └── main.out
│   └── out.exe
├── main.c
└── makefile

This makefile use two step compilation on the following steps:

  • making and merging folders
  • dependences compilation (lib folder)
  • main compilation (main.c)
  • building out.exe from libs.out and main.out

Use

For compile and run program, type make or make all in command prompt. Use make build for build only. For clean, type make clean.

Example output

PS C:\Path\to\project> make 
find 1 files on lib folder
compile... 
====== Run! ====== 
hello test
Len of string "one two tree..." is 15

About

init project for c language with makefile and

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published