Files
dasm/Makefile

30 lines
391 B
Makefile

NAME = dasm
CFLAGS = -Wall -Wextra -Wshadow
LDFLAGS =
SRC = src/main.c \
src/dasm.c \
src/instructions.c \
src/interpretor.c \
src/instructions/memory.c \
src/instructions/arithmetics.c
OBJ = $(SRC:%.c=%.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all
dbg: CFLAGS += -g -O0
dbg: re