1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-01-17 22:22:53 +08:00
inih/extra/Makefile.static
benhoyt@gmail.com a2b505c373 Couple of tweaks to static lib makefile:
* ".cpp.o" -> ".c.o" to get it to work
* removed unused LDFLAGS and .SUFFIXES
2012-10-09 20:35:58 +00:00

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)