blob: bf2bd8f980ff499be1b25e024bec0973c313b218 (
plain) (
tree)
|
|
NAME = clak
PREFIX = $(HOME)/.local
CC = gcc
CFLAGS += -std=c99 -Wall -Wextra -Wshadow -Werror -pedantic
ifeq ($(OS),Windows_NT)
LDLIBS = -lWinmm
PLATFORM = win32
else
UNAME_S := $(shell uname)
ifeq ($(UNAME_S),Linux)
PLATFORM = linux
endif
endif
default: $(NAME)
$(NAME): $(NAME).c platform/$(PLATFORM).c boards.h
$(CC) $(CFLAGS) $(NAME).c platform/$(PLATFORM).c $(LDLIBS) -o $(NAME)
clean:
rm -f *.o
rm -f $(NAME)
|