mirror of
https://github.com/benhoyt/inih.git
synced 2025-01-17 22:22:53 +08:00
a2b505c373
* ".cpp.o" -> ".c.o" to get it to work * removed unused LDFLAGS and .SUFFIXES
20 lines
320 B
Makefile
20 lines
320 B
Makefile
# Simple makefile to build inih as a static library using g++
|
|
|
|
SRC = ../ini.c
|
|
OBJ = $(SRC:.c=.o)
|
|
OUT = libinih.a
|
|
INCLUDES = -I..
|
|
CCFLAGS = -g -O2
|
|
CC = g++
|
|
|
|
default: $(OUT)
|
|
|
|
.c.o:
|
|
$(CC) $(INCLUDES) $(CCFLAGS) $(EXTRACCFLAGS) -c $< -o $@
|
|
|
|
$(OUT): $(OBJ)
|
|
ar rcs $(OUT) $(OBJ) $(EXTRAARFLAGS)
|
|
|
|
clean:
|
|
rm -f $(OBJ) $(OUT)
|