Makefile 291 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

CFLAGS = -Wall -O2 -ggdb

OBJ = mtp_udp.o mtp_packet.o onestamp.o mtp_stamp.o
PRG = $(OBJ:.o=)
LIB = libmtp.a
LOBJ = stamp-funcs.o report.o

LDFLAGS = -L. -lmtp

all: $(OBJ) $(PRG)


$(LIB): $(LOBJ)
	ar r $@ $^

%: %.o $(LIB)
	$(CC) $*.o $(LDFLAGS) -o $@

clean:
	rm -f $(PRG) $(LIB) *.o *~