summaryrefslogtreecommitdiff
path: root/work-in-progress/Makefile
diff options
context:
space:
mode:
authorDaniel Cerqueira <dan.git@lispclub.com>2025-06-10 20:22:31 +0100
committerDaniel Cerqueira <dan.git@lispclub.com>2025-06-10 20:22:31 +0100
commite20e88b3c9fefc84c4af7f6f047cf34ab2a52888 (patch)
treee7081eaf698dd0c00bcdf10e5bd2ef9907eaf80c /work-in-progress/Makefile
parent630bc6c0eafab95302f044a642447f9d02800474 (diff)
remove work-in-progress/
Diffstat (limited to 'work-in-progress/Makefile')
-rw-r--r--work-in-progress/Makefile94
1 files changed, 0 insertions, 94 deletions
diff --git a/work-in-progress/Makefile b/work-in-progress/Makefile
deleted file mode 100644
index f136822..0000000
--- a/work-in-progress/Makefile
+++ /dev/null
@@ -1,94 +0,0 @@
-# lali (Lali Another Lisp Implementation)
-#
-# Author: Daniel Cerqueira (dan.git@lispclub.com)
-# Maintainer: Daniel Cerqueira (dan.git@lispclub.com)
-# Version: 0.0
-# Keywords: lali, lisp, implementation, interpreter, lisp1.5,
-# computer programming language
-# Homepage: https://gitlab.com/alexandre1985/lali
-# SPDX-License-Identifier: GPL-3.0-or-later
-#
-# Copyright (C) 2025 Daniel Cerqueira
-#
-# This file is part of lali.
-#
-# lali is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free Software
-# Foundation; either version 3 of the License, or (at your option) any later
-# version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along with
-# this program; if not, see <https://www.gnu.org/licenses/>.
-#
-#
-# lali software is based on tiny-lisp <https://github.com/matp/tiny-lisp/> version
-# from 2016, written by Matthias Pirstitz, which is released to public domain
-# under Unlicense <https://unlicense.org/>.
-
-
-PROGRAM := lali
-LIBOBJECTS := liblali.o
-LIB := lib$(PROGRAM).a
-OBJECTS := $(LIBOBJECTS) lali.o
-HTML := README.html
-
-ifeq ($(shell uname -s), Linux)
-CPPFLAGS += -D_DEFAULT_SOURCE -D_BSD_SOURCE
-endif
-
-CFLAGS += -std=c11 -Wall -pedantic
-
-PREFIX ?= /usr/local
-
-.PHONY: native
-native: CPPFLAGS += -DNDEBUG
-native: CFLAGS += -march=native -O2
-native: $(PROGRAM)
-
-.PHONY: generic
-generic: CPPFLAGS += -DNDEBUG
-generic: CFLAGS += -mtune=generic -O2
-generic: $(PROGRAM)
-
-.PHONY: all
-all: CPPFLAGS += -DNDEBUG
-all: CFLAGS += -march=native -O2
-all: $(PROGRAM) $(LIB) $(HTML)
-
-.PHONY: debug
-debug: CPPFLAGS += -DDEBUG
-debug: CFLAGS += -g
-debug: LDFLAGS += -g
-debug: $(PROGRAM)
-
-.PHONY: clean
-clean:
- $(RM) $(PROGRAM) $(OBJECTS) $(LIB) $(HTML)
-
-.PHONY: lib
-lib: $(LIB)
-
-$(LIB): $(LIBOBJECTS)
- $(AR) rc $@ $(LIBOBJECTS)
- ranlib $@
-
-$(PROGRAM): $(OBJECTS)
- $(CC) $(LDFLAGS) $(OBJECTS) -o $@
-# $(CC) $(LDFLAGS) lali.o -L. -l$(PROGRAM) -o $@
-
-%.o: %.c %.h
- $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-
-.PHONY: html
-html: $(HTML)
-
-%.html: %.md
- md2html -f -o $@ $<
-
-.PHONY: install
-install: native
- install -D -m 311 -t $(PREFIX)/bin $(PROGRAM)