From 9b126372f575eaa8aac5cbd2e7d5718c9e2b71d0 Mon Sep 17 00:00:00 2001 From: Lucy Ada Randall <19198652+anoraktrend@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:09:48 -0700 Subject: [PATCH] fix issues with .gitignore ignoring important makefiles --- Makefile | 2 +- ...e.newcurse.lib => makefile.lib.ee.newcurse | 0 makefile.lib.newcurse | 48 +++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) rename makefile.ee.newcurse.lib => makefile.lib.ee.newcurse (100%) create mode 100644 makefile.lib.newcurse diff --git a/Makefile b/Makefile index be0e5c9..c7cbf5a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DEFINES = -DSYS5 -DBSD_SELECT -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDLIB -DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB -DHAS_SYS_WAIT -DSLCT_HDR +DEFINES = -DSYS5 -DBSD_SELECT -DNO_CATGETS -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDLIB -DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB -DHAS_SYS_WAIT -DSLCT_HDR CFLAGS= -O0 -march=native -mtune=native -flto -fcommon -lcurses diff --git a/makefile.ee.newcurse.lib b/makefile.lib.ee.newcurse similarity index 100% rename from makefile.ee.newcurse.lib rename to makefile.lib.ee.newcurse diff --git a/makefile.lib.newcurse b/makefile.lib.newcurse new file mode 100644 index 0000000..9adbd05 --- /dev/null +++ b/makefile.lib.newcurse @@ -0,0 +1,48 @@ +DEFINES = -DSYS5 -DBSD_SELECT -DNCURSE -DHAS_UNISTD -DNO_CATGETS -DHAS_STDLIB -DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB -DHAS_SYS_WAIT -DSLCT_HDR + +CFLAGS= -O0 -march=native -mtune=native -flto -fcommon + +LDFLAGS= -s -lncursesw -fuse-ld=lld + +main : aeelonk + +install : main + @./install-sh + +uninstall : clean + @./uninstall-sh +clean : + rm -f *.o aee *.a xae_dir/*.o + +all : ncurses new_curse + +CC = clang + +OBJS = new_curse.o control.o format.o localize.o srch_rep.o delete.o mark.o motion.o keys.o help.o windows.o journal.o file.o + +.c.o: + $(CC) $(DEFINES) -c $*.c $(CFLAGS) + +aee.o: + $(CC) $(DEFINES) -c aee.c $(CFLAGS) + +libnewcurse : $(OBJS) + llvm-ar rcs newcurse.a $(OBJS) + +aeelonk : libnewcurse aee.o + $(CC) -o ane newcurse.a -lm aee.o $(CFLAGS) $(LDFLAGS) + +aee.o: aee.c aee.h new_curse.h aee_version.h +control.o: control.c new_curse.h aee.h +delete.o: delete.c new_curse.h aee.h +format.o: format.c new_curse.h aee.h +help.o: help.c new_curse.h aee.h +journal.o: journal.c new_curse.h aee.h +windows.o: windows.c new_curse.h aee.h +file.o: file.c new_curse.h aee.h +keys.o: keys.c new_curse.h aee.h +localize.o: localize.c new_curse.h aee.h +mark.o: mark.c new_curse.h aee.h +motion.o: motion.c new_curse.h aee.h +srch_rep.o: srch_rep.c new_curse.h aee.h +new_curse.o: new_curse.c new_curse.h