Skip to content

Instantly share code, notes, and snippets.

@faried
Created September 1, 2011 23:09
Show Gist options
  • Save faried/1187533 to your computer and use it in GitHub Desktop.
Save faried/1187533 to your computer and use it in GitHub Desktop.
makefile for inform6 project
CFLAGS= -I.
PROG= inform6
SRCS= arrays.c asm.c bpatch.c chars.c directs.c errors.c expressc.c expressp.c \
files.c inform.c lexer.c linker.c memory.c objects.c states.c symbols.c \
syntax.c tables.c text.c veneer.c verbs.c
OBJS= ${SRCS:.c=.o}
all: $(PROG)
clean:
rm -f $(PROG) $(OBJS)
$(PROG): $(OBJS)
$(CC) -o $(PROG) $(OBJS)
%.o: %.c
$(CC) -c $(CFLAGS) $<
# eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment