Skip to content

Commit 1b9c30f

Browse files
added makefile and format file documentation
1 parent 774f135 commit 1b9c30f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
-------------------------------------------------------------------Makefile-------------------------------------------------------------------
2+
3+
${PROG}: ${PROG}.c
4+
${CC} ${PROG}.c ${OPTION1}.c -o ${PROG} ${CFLAGSANDLIBS}
5+
- This rule compiles the main program. It uses `gcc` to compile `main.c` and `test.c` into an executable named `main`.
6+
- It includes flags and libraries for GTK+ 3.0, retrieved using `pkg-config`, and links the math library with `-lm`.
7+
- Executing `make` will dynamically link everything and compile the programs to generate a executable file named `main`
8+
9+
clean:
10+
rm ${PROG}
11+
- This rule is a phony target that doesn't represent a file. It's used to clean up the directory by removing the compiled executable `main`.
12+
- Executing `make clean` will delete the `main` file, allowing for a fresh build next time `make` is run.
13+
14+
----------------------------------------------------------------------------------------------------------------------------------------------
15+
16+
-------------------------------------------------------------------Formats-------------------------------------------------------------------
17+
18+
In this folder, csv(comma-separated values) file format has been followed.
19+
20+
format.txt
21+
- A output format for Undergraduate.
22+
- This plain text is a format with placeholders for generating output by easily replacing placeholders with corresponding values.
23+
24+
D_fromat.txt
25+
- A output format for Undergraduate(for Diploma Holders)
26+
- Similar purpose as format.txt file.
27+
28+
----------------------------------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)