2020-10-28 05:16:30 +00:00
|
|
|
# make clean && make && ./bin/cosmo
|
|
|
|
|
|
|
|
CC=clang
|
2023-08-25 04:36:32 +00:00
|
|
|
CFLAGS=-fPIE -Wall -Isrc -O3 -std=c99
|
2023-05-29 01:52:12 +00:00
|
|
|
LDFLAGS=-lm #-fsanitize=address
|
2020-10-28 05:16:30 +00:00
|
|
|
OUT=bin/cosmo
|
|
|
|
|
|
|
|
CHDR=\
|
|
|
|
src/cchunk.h\
|
|
|
|
src/cdebug.h\
|
|
|
|
src/clex.h\
|
|
|
|
src/cmem.h\
|
|
|
|
src/coperators.h\
|
|
|
|
src/cosmo.h\
|
|
|
|
src/cparse.h\
|
|
|
|
src/cstate.h\
|
|
|
|
src/cvalue.h\
|
|
|
|
src/ctable.h\
|
|
|
|
src/cvm.h\
|
|
|
|
src/cobj.h\
|
|
|
|
src/cbaselib.h\
|
2023-05-28 04:17:17 +00:00
|
|
|
src/cdump.h\
|
|
|
|
src/cundump.h\
|
2020-10-28 05:16:30 +00:00
|
|
|
|
|
|
|
CSRC=\
|
|
|
|
src/cchunk.c\
|
|
|
|
src/cdebug.c\
|
|
|
|
src/clex.c\
|
|
|
|
src/cmem.c\
|
|
|
|
src/coperators.c\
|
|
|
|
src/cparse.c\
|
|
|
|
src/cstate.c\
|
|
|
|
src/cvalue.c\
|
|
|
|
src/ctable.c\
|
|
|
|
src/cvm.c\
|
|
|
|
src/cobj.c\
|
|
|
|
src/cbaselib.c\
|
2023-05-28 04:17:17 +00:00
|
|
|
src/cdump.c\
|
|
|
|
src/cundump.c\
|
2021-02-12 02:34:04 +00:00
|
|
|
main.c\
|
2020-10-28 05:16:30 +00:00
|
|
|
|
|
|
|
COBJ=$(CSRC:.c=.o)
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
$(OUT): $(COBJ) $(CHDR)
|
|
|
|
mkdir -p bin
|
|
|
|
$(CC) $(COBJ) $(LDFLAGS) -o $(OUT)
|
|
|
|
|
|
|
|
clean:
|
2021-06-11 20:01:53 +00:00
|
|
|
rm -rf $(COBJ) $(OUT)
|