For some reason I haven't noticed until now that the Makefile only added the first object-file to the library. Fix that.
23 lines
319 B
Makefile
23 lines
319 B
Makefile
# default target
|
|
all:
|
|
|
|
# default build flags
|
|
CFLAGS = -g -O2 -Wall
|
|
|
|
# user-defined config file (if available)
|
|
-include config.mak
|
|
|
|
SYNC_OBJS = \
|
|
sync/data.o \
|
|
sync/device.o \
|
|
sync/track.o
|
|
|
|
all: lib/librocket.a
|
|
|
|
clean:
|
|
$(RM) -rf $(SYNC_OBJS) lib
|
|
|
|
lib/librocket.a: $(SYNC_OBJS)
|
|
@mkdir -p lib
|
|
$(AR) $(ARFLAGS) $@ $^
|