Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Makefile 2.03 KB
Newer Older
1
2
# the directory with the MMIXware sources 
MMIXWARE=./mmixware
3
4
INCLDIR=-I ../../vmb/src/util -I ../../vmb/src/vmbmmixlib
LIBDIR=-L. -L../../vmb/src/util -L../../vmb/src/vmbmmixlib
5

6
7
LIBSIM=	libboot.c     libfinal.c     libload.c     libprint.c       libstats.c \
	libcommand.c  libinit.c      libmem.c      libprofile.c     libtrace.c \
8
9
	libdtrap.c    libinteract.c  libmmget.c    libshowbreaks.c  libglobals.c \
	libdump.c     liblibfinal.c  libmmput.c    libshowline.c    libstdin.c \
10
	libfetch.c    liblibinit.c   libperform.c  libsoption.c    
11

12
13
14
LIBAL=  libmmixal.c libalerror.c

LIBH=	libarith.h libtype.h mmix-io.h
15

16
17
LIBSRC= libname.c libbase.c

18
LIBOBJ= $(LIBSIM:.c=.o) $(LIBAL:.c=.o) $(LIBSRC:.c=.o) mmix-arith.o mmix-io.o
19
20

CC= gcc
21
CFLAGS= -Wall -ggdb -O0 $(INCLDIR) $(LIBDIR)
22
23
24
25
AR = ar
ARFLAGS = cru
RANLIB = ranlib

26
all: libmmix.a mmix-sim.c mmixal.c
27

28
libbase.o: libbase.c libbase.h libconfig.h
29

30
%.o : %.c abstime.h mmixlib.h  $(LIBH)
31

32
boilerplate.w: $(MMIXWARE)/boilerplate.w
33
34
	cp $< $@

35
abstime.h: $(MMIXWARE)/abstime.h
36
37
	cp $< $@

38
$(MMIXWARE)/abstime.h: $(MMIXWARE)/abstime
39
	$(MAKE) -C mmix abstime
40
	$(MMIXWARE)/abstime > $(MMIXWARE)/abstime.h
41

42
43
mmix-arith.c: boilerplate.w $(MMIXWARE)/mmix-arith.w
	ctangle $(MMIXWARE)/mmix-arith.w
44

45
46
mmix-io.c: boilerplate.w $(MMIXWARE)/mmix-io.w
	ctangle $(MMIXWARE)/mmix-io.w
47

48
49
$(LIBAL):  boilerplate.w $(MMIXWARE)/mmixal.w mmixallib.ch
	ctangle $(MMIXWARE)/mmixal.w mmixallib.ch
50
51


52
53
$(LIBSIM) $(LIBH) mmix-sim.c: boilerplate.w $(MMIXWARE)/mmix-sim.w mmixlib.ch libconfig.h
	ctangle $(MMIXWARE)/mmix-sim.w mmixlib.ch 
54
55


56
libmmix.a: $(LIBOBJ)
57
58
59
60
	rm -f $@
	$(AR) $(ARFLAGS) $@ $(LIBOBJ)
	$(RANLIB) $@

61
62
mmix-sim: libmmix.a mmix-sim.c
	$(CC) $(CFLAGS) mmix-sim.c -L. -lmmix -o mmix-sim
63

64
65
66
67
mmixcpu: libmmix.a mmix-vmb.c
	$(CC) $(CFLAGS) mmix-vmb.c  -lmmix -lvmbmmix -lvmb -lpthread -o mmixcpu


68
69
70
mmixal: libmmix.a mmixal.c
	$(CC) $(CFLAGS) mmixal.c -L. -lmmix -o mmixal

71
72
73
74
.PHONY: TAGS
TAGS:
	etags *.c *.h *.ch

75
76
clean:
	rm -f *.o
77
	rm -f $(LIBSIM) $(LIBH) $(LIBAL) mmix-arith.c mmix-io.c
78
79
80
	rm -f *~ *.tmp
	rm -f libmmix.a mmix-sim
	rm -f mmix-sim.c mmixal.c