can read character from keyboard now

This commit is contained in:
2024-12-04 17:17:53 +09:00
parent f18775bfdd
commit 4580d576a8
25 changed files with 729 additions and 371 deletions

View File

@@ -1,15 +1,17 @@
PROG=installmbr
SRCS=$(wildcard *.c)
OBJS=$(SRCS:.c=.o)
SDIR ?= ../
BDIR ?= ./
CFLAGS = -g
CPPFLAGS = -I $(IDIR)
PROG = installmbr
SRCS = installmbr.c
OBJS = installmbr.o
CFLAGS = -g -Wall -Werror
CPPFLAGS = -I $(SDIR)
${PROG}: $(OBJS)
@rm -f $(PROG)
$(CC) $(CFLAGS) -o $(BDIR)/$(PROG) $^
$(CC) $(CFLAGS) -o $(BDIR)/$(PROG) $(OBJS)
$(OBJS): ../dat.h
$(OBJS): $(SDIR)/u.h $(SDIR)/btld_conf.h $(SDIR)/btld_disk.h
clean:
rm -rf $(PROG) $(OBJS)
rm -f $(PROG) $(OBJS)