This repository was archived by the owner on Oct 6, 2024. It is now read-only.
File tree 3 files changed +10
-28
lines changed
3 files changed +10
-28
lines changed Original file line number Diff line number Diff line change 1
- /hungarian
2
1
* ~
3
- \# * \#
4
- . *
5
- ! .git *
6
- * .bak
7
- * .swp
8
- * .swo
2
+ * # *
9
3
* .su
10
- * .o
11
- * .out
12
- * .gch
13
-
4
+ /hungarian
Original file line number Diff line number Diff line change 1
- OPTIMISE = -Og -g
2
- WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include-dirs \
3
- -Wtrampolines -Wfloat-equal -Wshadow -Wmissing-prototypes -Wmissing-declarations \
4
- -Wredundant-decls -Wnested-externs -Winline -Wno-variadic-macros -Wsync-nand \
5
- -Wunsafe-loop-optimizations -Wcast-align -Wstrict-overflow \
6
- -Wundef -Wbad-function-cast -Wcast-qual -Wwrite-strings -Wlogical-op -Waggregate-return \
7
- -Wstrict-prototypes -Wold-style-definition -Wpacked -Wvector-operation-performance \
8
- -Wunsuffixed-float-constants -Wsuggest-attribute=const -Wsuggest-attribute=noreturn \
9
- -Wsuggest-attribute=pure -Wsuggest-attribute=format -Wnormalized=nfkc -Wconversion \
10
- -fstrict-aliasing -fstrict-overflow -fipa-pure-const -ftree-vrp -fstack-usage \
11
- -funsafe-loop-optimizations -Wdeclaration-after-statement
1
+ .POSIX :
2
+
3
+ CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
4
+ CFLAGS = -std=c99 -g
5
+ LDFLAGS =
12
6
13
7
14
8
all : hungarian
15
9
16
10
hungarian : hungarian.c
17
- gcc -std=gnu99 $(OPTIMISE ) $(WARN ) $(CFLAGS ) $(LDFLAGS ) $(CPPFLAGS ) -o $@ $<
18
-
19
- test : hungarian
20
- ./hungarian
11
+ gcc -o $@ $< $(CFLAGS ) $(CPPFLAGS ) $(LDFLAGS )
21
12
22
13
clean :
23
14
-rm -f -- hungarian
24
15
25
16
26
- .PHONY : all test valgrind clean
27
-
17
+ .PHONY : all clean
Original file line number Diff line number Diff line change 11
11
*/
12
12
13
13
14
+ #include <sys/types.h>
14
15
#include <stddef.h>
15
16
#include <stdio.h>
16
17
#include <stdlib.h>
You can’t perform that action at this time.
0 commit comments