arcnyxx.net.git
Makefile
# elk - html packer and compile script
# Copyright (C) 2024 ArcNyxx <me@arcnyxx.net>
# see LICENCE file for licensing information
.POSIX:
include config.mk
SRC_SNAIL = snail.c
OBJ_SNAIL = $(SRC_SNAIL:.c=.o)
SRC_STOAT = stoat.c
OBJ_STOAT = $(SRC_STOAT:.c=.o)
OBJ = $(OBJ_SNAIL) $(OBJ_STOAT)
all: snail stoat
$(OBJ): config.mk
.c.o:
$(PP) $(CFLAGS) -c $< -o $*.o
snail: $(OBJ_SNAIL)
$(CC) $(OBJ_SNAIL) -o $@ $(LDFLAGS)
stoat: $(OBJ_STOAT)
$(CC) $(OBJ_STOAT) -o $@ $(LDFLAGS)
clean:
rm -f snail stoat $(OBJ)
.PHONY: all clean