Skip to content

Commit

Permalink
Couple of tweaks to static lib makefile:
Browse files Browse the repository at this point in the history
* ".cpp.o" -> ".c.o" to get it to work
* removed unused LDFLAGS and .SUFFIXES
  • Loading branch information
benhoyt@gmail.com committed Oct 9, 2012
1 parent d28ba66 commit a2b505c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions extra/Makefile.static
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
#
# Simple makefile to build inih as static library.
#
# 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
CCC = g++
LDFLAGS = -g

.SUFFIXES: .cpp
CC = g++

default: $(OUT)

.cpp.o:
$(CCC) $(INCLUDES) $(CCFLAGS) $(EXTRACCFLAGS) -c $< -o $@
.c.o:
$(CC) $(INCLUDES) $(CCFLAGS) $(EXTRACCFLAGS) -c $< -o $@

$(OUT): $(OBJ)
ar rcs $(OUT) $(OBJ) $(EXTRAARFLAGS)
Expand Down

0 comments on commit a2b505c

Please sign in to comment.