This repository has been archived on 2025-01-22. You can view files and clone it, but cannot push or open issues or pull requests.
mifare-classic-editor/Makefile
2023-12-26 01:58:36 -03:00

19 lines
268 B
Makefile

CC=gcc
CFLAGS=-g -Wall
SRC=src
OBJ=obj
SRCS=$(wildcard $(SRC)/*.c)
OBJS=$(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SRCS))
BIN=./main
all:$(BIN)
$(BIN): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $@
$(OBJ)/%.o: $(SRC)/%.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
$(RM) -r $(OBJ)/*