lama_byterun/stdlib/Makefile
Kakadu 3f7f51b2f0 Handle -march properly
Signed-off-by: Kakadu <Kakadu@pm.me>
2024-09-05 19:12:37 +03:00

37 lines
905 B
Makefile

.PHONY: all
SHELL := /bin/bash
SRCDIR ?= .
$(info SRCDIR = $(SRCDIR))
FILES ?= $(wildcard $(SRCDIR)/*.lama)
$(info FILES = $(FILES))
OFILES = $(FILES:$(SRCDIR)/%=%)
OFILES := $(OFILES:.lama=.o)
$(info OFILES = $(OFILES))
ALL := $(sort $(OFILES))
LAMAC ?= ../src/lamac
BDIR ?= .
all: $(addprefix $(BDIR)/,$(ALL))
$(info ALL = $(ALL), SRCDIR = $(SRCDIR))
$(BDIR)/Fun.o: $(BDIR)/Ref.o
$(BDIR)/Data.o: $(BDIR)/Ref.o $(BDIR)/Collection.o
$(BDIR)/Collection.o: $(BDIR)/List.o $(BDIR)/Ref.o
$(BDIR)/Array.o: $(BDIR)/List.o
$(BDIR)/Random.o $(BDIR)/Collection.o: $(BDIR)/Array.o
$(BDIR)/Ostap.o: $(BDIR)/List.o $(BDIR)/Collection.o $(BDIR)/Ref.o $(BDIR)/Fun.o $(BDIR)/Matcher.o $(BDIR)/Data.o
$(BDIR)/Buffer.o: $(BDIR)/List.o
$(BDIR)/STM.o: $(BDIR)/List.o $(BDIR)/Fun.o
$(BDIR)/%.o: $(SRCDIR)/%.lama
$(LAMAC) -g -I . -c $< #-o $@
clean:
$(RM) -r *.s *.o *.i *~
pushd regression && make clean && popd