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

39 lines
584 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
2017-03-19 04:39:56 +00:00
endif
2017-03-19 04:38:01 +00:00
ifeq ($(OS), NetBSD)
CC=cc
CFLAGS=-I/usr/pkg/include
LDFLAGS=-L/usr/pkg/lib
2017-03-19 04:39:56 +00:00
endif
ifeq ($(OS), Linux)
2017-03-19 04:38:01 +00:00
CC=gcc
CFLAGS=
LDFLAGS=
endif
2017-03-19 04:39:56 +00:00
ifeq ($(OS), Darwin)
CC=cc
CFLAGS=
LDFLAGS=
endif
2017-03-19 04:38:01 +00:00
2016-08-10 11:07:59 +00:00
DEPS = ticproc.c
2017-03-19 04:41:22 +00:00
OBJ = ticproc.o ../../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