diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 406caee..8fb0c87 100644 --- a/src/Makefile +++ b/src/Makefile @@ -23,24 +23,40 @@ $(OBJ): config.h $(BASEDIR)/config.mk $(LOBJ): config.h $(BASEDIR)/config.mk $(TARGET): $(OBJ) +ifeq ($(VERBOSE),0) + $(CC) $(OBJ) -o $@ $(LDFLAGS) +else @echo "$(CC) $@" @$(CC) $(OBJ) -o $@ $(LDFLAGS) +endif $(LIBTARGET): $(LOBJ) +ifeq ($(VERBOSE),0) + $(CC) -shared ${LOBJ} -o $@ $(LDFLAGS) +else @echo "$(CC) $@" @$(CC) -shared ${LOBJ} -o $@ $(LDFLAGS) +endif config.h: @echo create $@ from config.def.h @cp config.def.h $@ %.o: %.c %.h +ifeq ($(VERBOSE),0) @echo "${CC} $@" @$(CC) $(CFLAGS) -c -o $@ $< +else + $(CC) $(CFLAGS) -c -o $@ $< +endif %.lo: %.c %.h +ifeq ($(VERBOSE),0) @echo "${CC} $@" @$(CC) -DTESTLIB $(CFLAGS) -fPIC -c -o $@ $< +else + $(CC) -DTESTLIB $(CFLAGS) -fPIC -c -o $@ $< +endif -include $(OBJ:.o=.d) |