This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/utils/ticproc/Makefile

32 lines
504 B
Makefile
Raw Normal View History

2017-03-19 04:38:01 +00:00
OS := $(shell uname -s)
ifeq ($(OS), FreeBSD)
CC=cc
CFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib
else
ifeq ($(OS), NetBSD)
CC=cc
CFLAGS=-I/usr/pkg/include
LDFLAGS=-L/usr/pkg/lib
else
CC=gcc
CFLAGS=
LDFLAGS=
endif
2016-08-10 11:07:59 +00:00
DEPS = ticproc.c
2017-03-19 04:38:01 +00:00
OBJ = ticproc.o ../../deps/inih/ini.o crc32.o
2016-08-10 11:07:59 +00:00
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
ticproc: $(OBJ)
2017-03-19 04:38:01 +00:00
$(CC) -o ticproc -o $@ $^ $(CFLAGS) $(LDFLAGS) -lsqlite3
2016-08-10 11:07:59 +00:00
.PHONY: clean
clean:
rm -f $(OBJ) ticproc