Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Makefile to reference correct libraries #4

Closed
wants to merge 8 commits into from
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
CC = gcc
CFLAGS = -Wall -D_FILE_OFFSET_BITS=64
CFLAGS = -Wall
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. This should be left alone, I guess.. Had to play around with some iconv-trouble before getting everything to work correctly.. Didn't see this before adding the pull request. Sorry!

GIMGLIB_SOURCES = gimglib.c util.c sf_typ.c sf_mps.c sf_tre.c sf_rgn.c sf_lbl.c sf_net.c sf_nod.c sf_dem.c sf_mar.c sf_gmp.c
GIMGLIB_OBJS = $(GIMGLIB_SOURCES:.c=.o)
LIBS= -liconv

all: gimginfo gimgfixcmd gimgxor gimgunlock gimgch gimgextract cmdc

gimginfo: gimginfo.o $(GIMGLIB_OBJS)
$(CC) -o $@ $^ ${LIBS}

gimgfixcmd: gimgfixcmd.o cmdlib.o $(GIMGLIB_OBJS)
$(CC) -o $@ $^ -lm
$(CC) -o $@ $^ ${LIBS}

gimgxor: gimgxor.o
$(CC) -o $@ $^ ${LIBS}

gimgunlock: gimgunlock.o util_indep.o
$(CC) -o $@ $^ ${LIBS}

gimgch: gimgch.o util_indep.o
$(CC) -o $@ $^ ${LIBS}

gimgextract: gimgextract.o util_indep.o
$(CC) -o $@ $^ ${LIBS}

cmdc: cmdc.o
$(CC) -o $@ $< -lm
$(CC) -o $@ $^ ${LIBS}

.PHONY: clean
clean:
Expand Down