Lichen

Annotated templates/Makefile

132:637f2b13210a
2016-10-25 Paul Boddie Added parameter table code and position constant generation. Removed the parameter list adjustments for instantiators. Fixed method and function structure generation. Fixed argument limit calculations. Fixed class type position attribute generation for non-classes. Fixed bound method and parameter table references. Updated generated instantiators to update the initial context argument. Added CFLAGS to the Makefile.
paul@126 1
SRC = progops.c progtypes.c ops.c $(wildcard src/*.c)
paul@126 2
OBJ = $(SRC:.c=.o)
paul@132 3
CFLAGS = -I.
paul@126 4
paul@126 5
all: main
paul@126 6
paul@126 7
clean:
paul@126 8
	rm -f main $(OBJ)
paul@126 9
paul@126 10
main: $(OBJ)
paul@126 11
	$(CC) $(LDFLAGS) $(OBJ) -o $@
paul@126 12
paul@126 13
.c.o:
paul@126 14
	$(CC) -c $(CFLAGS) $< -o $@