blob: cf6474211f7a86321abf90d3d941e42dc4974ffb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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
$(CC) $(CFLAGS) $(NAME).c platform/$(PLATFORM).c $(LDLIBS) -o $(NAME)
clean:
rm -f *.o
rm -f $(NAME)
|