2022-06-18 19:17:07 +02:00
|
|
|
#
|
|
|
|
# Project: Lite XL
|
|
|
|
#
|
2023-01-29 13:58:56 +01:00
|
|
|
# Created on: 26-12-2021
|
2022-06-18 19:17:07 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
LiteXL_OBJ := \
|
2022-10-10 20:06:19 +02:00
|
|
|
src/main.o src/rencache.o src/renderer.o src/renwindow.o \
|
|
|
|
src/api/api.o src/api/dirmonitor.o \
|
|
|
|
src/api/regex.o src/api/renderer.o src/api/system.o \
|
|
|
|
src/api/utf8.o src/platform/morphos.o \
|
|
|
|
src/api/dirmonitor/mos.o
|
2022-06-18 19:17:07 +02:00
|
|
|
|
|
|
|
|
2023-01-29 13:58:56 +01:00
|
|
|
outfile := lite-xl
|
2022-06-18 19:17:07 +02:00
|
|
|
compiler := gcc
|
|
|
|
cxxcompiler := g++
|
|
|
|
|
2022-10-10 20:06:19 +02:00
|
|
|
INCPATH := -Isrc -Ilib/dmon -I/sdk/gg/usr/local/include/SDL2 -I/sdk/gg/usr/include/freetype -I/sdk/gg/usr/include/lua5.4
|
|
|
|
DFLAGS := -D__USE_INLINE__
|
2022-06-18 19:17:07 +02:00
|
|
|
CFLAGS := -Wall -Wwrite-strings -O2 -noixemul -g -std=gnu11 -fno-strict-aliasing
|
2022-10-10 20:06:19 +02:00
|
|
|
LFLAGS := -noixemul -lpcre2 -lSDL2 -llua54 -lagg -lfreetype -lm -lc -L/usr/local/lib
|
2022-06-18 19:17:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
.PHONY: LiteXL clean release
|
|
|
|
|
|
|
|
default: LiteXL
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "Cleaning compiler objects..."
|
|
|
|
@rm -f $(LiteXL_OBJ)
|
|
|
|
|
|
|
|
LiteXL: $(LiteXL_OBJ)
|
|
|
|
@echo "Linking LiteXL"
|
2023-01-29 13:58:56 +01:00
|
|
|
@$(cxxcompiler) -o $(outfile) $(LiteXL_OBJ) $(LFLAGS)
|
2022-06-18 19:17:07 +02:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
@echo "Compiling $<"
|
|
|
|
@$(compiler) -c $< -o $*.o $(CFLAGS) $(INCPATH) $(DFLAGS)
|
|
|
|
|
|
|
|
src/main.o: src/main.c src/api/api.h src/rencache.h \
|
2022-10-10 20:06:19 +02:00
|
|
|
src/renderer.h src/platform/morphos.h
|
2022-06-18 19:17:07 +02:00
|
|
|
|
|
|
|
src/rencache.o: src/rencache.c
|
|
|
|
|
|
|
|
src/renderer.o: src/renderer.c
|
|
|
|
|
|
|
|
src/renwindow.o: src/renwindow.c
|
|
|
|
|
|
|
|
src/api/api.o: src/api/api.c
|
|
|
|
|
|
|
|
src/api/regex.o: src/api/regex.c
|
|
|
|
|
|
|
|
src/api/renderer.o: src/api/renderer.c
|
|
|
|
|
|
|
|
src/api/system.o: src/api/system.c
|
|
|
|
|
|
|
|
src/platform/morphos.o: src/platform/morphos.c
|
|
|
|
|
2022-10-10 20:06:19 +02:00
|
|
|
src/api/dirmonitor.o: src/api/dirmonitor.c src/api/dirmonitor/mos.c
|
|
|
|
|
|
|
|
src/api/utf8.o: src/api/utf8.c
|
|
|
|
|
|
|
|
src/api/dirmonitor/mos.o: src/api/dirmonitor/mos.c
|
2022-06-18 19:17:07 +02:00
|
|
|
|
|
|
|
release: clean LiteXL
|
|
|
|
@echo "Creating release files..."
|
|
|
|
@mkdir -p release/LiteXL2
|
|
|
|
@cp release_files/* release/LiteXL2/ -r
|
|
|
|
@mv release/LiteXL2/LiteXL2.info release/
|
|
|
|
@cp data release/LiteXL2/ -r
|
|
|
|
@cp changelog.md release/LiteXL2/
|
2023-01-29 13:58:56 +01:00
|
|
|
@cp $(outfile) release/LiteXL2/
|
|
|
|
@strip release/LiteXL2/$(outfile)
|
2022-06-18 19:17:07 +02:00
|
|
|
@cp README.md release/LiteXL2/
|
|
|
|
@cp README_Amiga.md release/LiteXL2/
|
|
|
|
@cp LICENSE release/LiteXL2/
|
|
|
|
@echo "Creating release archive..."
|
|
|
|
@lha -aeqr3 a LiteXL2_MOS.lha release/
|
|
|
|
@echo "Clean release files..."
|
|
|
|
@delete release ALL QUIET FORCE
|