mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
recipes related to mlibc and a hello world init
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
.phony: all install
|
||||
CC=x86_64-astral-gcc
|
||||
LD=x86_64-astral-gcc
|
||||
all: init
|
||||
|
||||
install:
|
||||
cp init "$(DESTDIR)/init"
|
||||
|
||||
init: main.o
|
||||
$(LD) $(LDFLAGS) -o $@ $^
|
||||
|
||||
main.o: main.c
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Hello, world!\n");
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user