save
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
|||||||
prefix = /usr/bin
|
prefix = /usr/bin
|
||||||
|
|
||||||
YAIT_SRCS := $(wildcard yait/*.c)
|
YAIT_SRCS := $(wildcard yait/*.c) $(wildcard lib/*.c)
|
||||||
|
|
||||||
YAIT_OBJS := $(patsubst yait/%.c,obj/yait/%.o,$(YAIT_SRCS))
|
YAIT_OBJS := $(patsubst yait/%.c,obj/yait/%.o,$(YAIT_SRCS))
|
||||||
|
|
||||||
|
|||||||
4
config.mak
Normal file
4
config.mak
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
PREFIX=/usr/bin/
|
||||||
|
CFLAGS=-Wall -Wextra -O2
|
||||||
|
LDFLAGS=
|
||||||
|
CC=gcc
|
||||||
@@ -6,7 +6,7 @@ int printfn(char *format, ...) {
|
|||||||
int len;
|
int len;
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
printf("yait: ");
|
fprintf(stderr, "yait: ");
|
||||||
len = vfprintf(stderr, format, args);
|
len = vfprintf(stderr, format, args);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|||||||
BIN
obj/yait/main.o
Normal file
BIN
obj/yait/main.o
Normal file
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include "../lib/print.h"
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
printf("Hello, Yait!\n");
|
printfn("error: incomplete binary.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user