19 lines
277 B
Makefile
19 lines
277 B
Makefile
#
|
|
# Makefile
|
|
#
|
|
|
|
include config.mk
|
|
|
|
SDIR = ./src
|
|
BDIR = ./build
|
|
|
|
all: $(SDIR)/esm.c $(SDIR)/util.c $(SDIR)/util.h
|
|
mkdir $(BDIR)
|
|
$(CC) $(SDIR)/esm.c $(SDIR)/util.c -o $(BDIR)/esm $(LIBFLAGS) $(CFLAGS)
|
|
|
|
install:
|
|
install $(BDIR)/esm $(PREFIX)/bin -m 755
|
|
|
|
clean:
|
|
rm -rf $(BDIR)
|