File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ CFLAGS = -O2
12
12
BUILD = build
13
13
14
14
LIBSRCS = context.c varint.c array.c pattern.c register.c proto.c map.c alloc.c rmessage.c wmessage.c bootstrap.c stringpool.c
15
- LIBNAME = $( BUILD ) / libpbc.$(SO )
15
+ LIBNAME = libpbc.$(SO )
16
16
17
17
TESTSRCS = addressbook.c pattern.c
18
18
PROTOSRCS = addressbook.proto descriptor.proto
45
45
$(foreach s,$(LIBSRCS),$(eval $(call BUILD_temp,$(s))))
46
46
47
47
$(LIBNAME ) : $(LIB_O )
48
- $( CC ) --shared -o $(LIBNAME ) $^
48
+ cd $( BUILD ) && $( CC ) --shared -o $(LIBNAME ) $( addprefix ../, $^ )
49
49
50
50
TEST :=
51
51
@@ -55,7 +55,7 @@ define TEST_temp
55
55
$$(TAR )$$(EXE ) : | $(BUILD )
56
56
$$(TAR )$$(EXE ) : | $(LIBNAME )
57
57
$$(TAR )$$(EXE ) : test/$(1 )
58
- $( CC ) $(CFLAGS ) -I. -L$( BUILD ) -lpbc -o $$@ $$<
58
+ cd $( BUILD ) && $( CC ) $(CFLAGS ) -I.. -L. -lpbc -o $$( notdir $$@ ) ../ $$<
59
59
endef
60
60
61
61
$(foreach s,$(TESTSRCS),$(eval $(call TEST_temp,$(s))))
You can’t perform that action at this time.
0 commit comments