We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9909a79 commit e351703Copy full SHA for e351703
Makefile
@@ -0,0 +1,18 @@
1
+CC = i686-echidnaos-gcc
2
+CFLAGS = -O3 -Wall -Wextra
3
+PREFIX =
4
+C_FILES = hello.c
5
+OBJ = $(C_FILES:.c=.o)
6
+
7
+hello: $(OBJ)
8
+ $(CC) -o hello $(OBJ)
9
10
+%.o: %.c
11
+ $(CC) $(CFLAGS) -c $< -o $@
12
13
+clean:
14
+ rm -f $(OBJ) hello
15
16
+install:
17
+ mkdir -p $(PREFIX)/bin
18
+ cp hello $(PREFIX)/bin/
hello.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+int main(int argc, char* argv[]) {
+ printf("Hello World!\n");
+ return 0;
+}
0 commit comments