initial commit
This commit is contained in:
commit
25abefd348
5 changed files with 45 additions and 0 deletions
26
Makefile
Normal file
26
Makefile
Normal file
|
@ -0,0 +1,26 @@
|
|||
CC = i686-pc-msdosdjgpp-gcc
|
||||
CFLAGS = -march=i486 -mtune=i486
|
||||
|
||||
SRCDIR := src
|
||||
BINARY := gooble.exe
|
||||
|
||||
SRCS := $(wildcard $(SRCDIR)/*.c)
|
||||
OBJS := $(patsubst %.c,%.o,$(SRCS))
|
||||
|
||||
DEPS := $(OBJS:%.o=%.d)
|
||||
|
||||
$(BINARY): $(OBJS)
|
||||
@echo [Linking $@]
|
||||
$(CC) -o bin/$@ $(CFLAGS) $(OBJS)
|
||||
|
||||
%.o: %.c
|
||||
@echo [Compiling $<]
|
||||
$(CC) -c -o $@ $(CFLAGS) $<
|
||||
|
||||
clean:
|
||||
rm -f $(SRCDIR)/*.o
|
||||
rm -f build/$(BINARY)
|
||||
rm -f *.bin
|
||||
|
||||
mkcd:
|
||||
xorriso -outdev ./gooble.bin -blank as_needed -map bin / -map assets /assets -volid "GOOBLECD"
|
Loading…
Add table
Add a link
Reference in a new issue