https://github.com/devlights/try-c
This is my TUTORIAL project for C
https://github.com/devlights/try-c
c clion cmake jetbrains tutorial
Last synced: about 2 months ago
JSON representation
This is my TUTORIAL project for C
- Host: GitHub
- URL: https://github.com/devlights/try-c
- Owner: devlights
- License: mit
- Created: 2017-02-16T04:08:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-16T13:16:44.000Z (3 months ago)
- Last Synced: 2025-02-16T14:37:37.900Z (3 months ago)
- Topics: c, clion, cmake, jetbrains, tutorial
- Language: Makefile
- Homepage:
- Size: 115 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# try-c
This is my TUTORIAL project for C.## Requirements
- gcc or clang
- make## Add example
```sh
$ make init-example NAME="the/example/directory"
$ tree the
the
└── example
└── directory
├── main.c
└── Makefile2 directories, 2 files
```## Run
1. Go to the directory of the sample you want to run.
2. run make### Example
```sh
$ cd basic/01.helloworld
$ make run
```or
```sh
$ make -C basic/01.helloworld run
```### Makefile template
- https://gist.github.com/devlights/16a96258d3859b9d25876a536d07d4dd