Modify the "binary" test to also cover C++ source files
This commit is contained in:
parent
1767f4fc29
commit
f4c82f613f
@ -28,7 +28,7 @@ $(OBJDIR)test2$(EXEEXT): $(test2_OBJS)
|
|||||||
$(CC) -o $(OBJDIR)test2$(EXEEXT) $(test2_OBJS) $(test2_LDFLAGS)
|
$(CC) -o $(OBJDIR)test2$(EXEEXT) $(test2_OBJS) $(test2_LDFLAGS)
|
||||||
|
|
||||||
test3_OBJS = $(OBJDIR)test.o
|
test3_OBJS = $(OBJDIR)test.o
|
||||||
test3_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
test3_CXXFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CXXFLAGSF) $(CXXFLAGS)
|
||||||
test3_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -ldl -lm
|
test3_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -ldl -lm
|
||||||
|
|
||||||
$(OBJDIR)test3$(EXEEXT): $(test3_OBJS)
|
$(OBJDIR)test3$(EXEEXT): $(test3_OBJS)
|
||||||
@ -43,8 +43,8 @@ $(OBJDIR)main.o: main.c
|
|||||||
$(OBJDIR)test.o: test.m
|
$(OBJDIR)test.o: test.m
|
||||||
$(CC) $(test2_CFLAGS) -o $(OBJDIR)test.o -c test.m
|
$(CC) $(test2_CFLAGS) -o $(OBJDIR)test.o -c test.m
|
||||||
|
|
||||||
$(OBJDIR)test.o: test.c
|
$(OBJDIR)test.o: test.cpp
|
||||||
$(CC) $(test3_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test.o -c test.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS)
|
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS)
|
||||||
|
@ -28,7 +28,7 @@ $(OBJDIR)test2$(EXEEXT): $(test2_OBJS)
|
|||||||
$(CC) -o $(OBJDIR)test2$(EXEEXT) $(test2_OBJS) $(test2_LDFLAGS)
|
$(CC) -o $(OBJDIR)test2$(EXEEXT) $(test2_OBJS) $(test2_LDFLAGS)
|
||||||
|
|
||||||
test3_OBJS = $(OBJDIR)test.o
|
test3_OBJS = $(OBJDIR)test.o
|
||||||
test3_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
test3_CXXFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CXXFLAGSF) $(CXXFLAGS)
|
||||||
test3_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -ldl -lsocket -lm
|
test3_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -ldl -lsocket -lm
|
||||||
|
|
||||||
$(OBJDIR)test3$(EXEEXT): $(test3_OBJS)
|
$(OBJDIR)test3$(EXEEXT): $(test3_OBJS)
|
||||||
@ -43,8 +43,8 @@ $(OBJDIR)main.o: main.c
|
|||||||
$(OBJDIR)test.o: test.m
|
$(OBJDIR)test.o: test.m
|
||||||
$(CC) $(test2_CFLAGS) -o $(OBJDIR)test.o -c test.m
|
$(CC) $(test2_CFLAGS) -o $(OBJDIR)test.o -c test.m
|
||||||
|
|
||||||
$(OBJDIR)test.o: test.c
|
$(OBJDIR)test.o: test.cpp
|
||||||
$(CC) $(test3_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test.o -c test.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS)
|
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS)
|
||||||
|
@ -28,7 +28,7 @@ $(OBJDIR)test2$(EXEEXT): $(test2_OBJS)
|
|||||||
$(CC) -o $(OBJDIR)test2$(EXEEXT) $(test2_OBJS) $(test2_LDFLAGS)
|
$(CC) -o $(OBJDIR)test2$(EXEEXT) $(test2_OBJS) $(test2_LDFLAGS)
|
||||||
|
|
||||||
test3_OBJS = $(OBJDIR)test.o
|
test3_OBJS = $(OBJDIR)test.o
|
||||||
test3_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
test3_CXXFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CXXFLAGSF) $(CXXFLAGS)
|
||||||
test3_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -lm
|
test3_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -lm
|
||||||
|
|
||||||
$(OBJDIR)test3$(EXEEXT): $(test3_OBJS)
|
$(OBJDIR)test3$(EXEEXT): $(test3_OBJS)
|
||||||
@ -43,8 +43,8 @@ $(OBJDIR)main.o: main.c
|
|||||||
$(OBJDIR)test.o: test.m
|
$(OBJDIR)test.o: test.m
|
||||||
$(CC) $(test2_CFLAGS) -o $(OBJDIR)test.o -c test.m
|
$(CC) $(test2_CFLAGS) -o $(OBJDIR)test.o -c test.m
|
||||||
|
|
||||||
$(OBJDIR)test.o: test.c
|
$(OBJDIR)test.o: test.cpp
|
||||||
$(CC) $(test3_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test.o -c test.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS)
|
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS)
|
||||||
|
@ -28,7 +28,7 @@ $(OBJDIR)test2$(EXEEXT): $(test2_OBJS)
|
|||||||
$(CC) -o $(OBJDIR)test2$(EXEEXT) $(test2_OBJS) $(test2_LDFLAGS)
|
$(CC) -o $(OBJDIR)test2$(EXEEXT) $(test2_OBJS) $(test2_LDFLAGS)
|
||||||
|
|
||||||
test3_OBJS = $(OBJDIR)test.o
|
test3_OBJS = $(OBJDIR)test.o
|
||||||
test3_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
test3_CXXFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CXXFLAGSF) $(CXXFLAGS)
|
||||||
test3_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -lsocket -lm
|
test3_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -lsocket -lm
|
||||||
|
|
||||||
$(OBJDIR)test3$(EXEEXT): $(test3_OBJS)
|
$(OBJDIR)test3$(EXEEXT): $(test3_OBJS)
|
||||||
@ -43,8 +43,8 @@ $(OBJDIR)main.o: main.c
|
|||||||
$(OBJDIR)test.o: test.m
|
$(OBJDIR)test.o: test.m
|
||||||
$(CC) $(test2_CFLAGS) -o $(OBJDIR)test.o -c test.m
|
$(CC) $(test2_CFLAGS) -o $(OBJDIR)test.o -c test.m
|
||||||
|
|
||||||
$(OBJDIR)test.o: test.c
|
$(OBJDIR)test.o: test.cpp
|
||||||
$(CC) $(test3_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test.o -c test.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS)
|
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS)
|
||||||
|
@ -13,5 +13,5 @@ ldflags=-lobjc
|
|||||||
|
|
||||||
[test3]
|
[test3]
|
||||||
type=binary
|
type=binary
|
||||||
sources=test.c
|
sources=test.cpp
|
||||||
ldflags=-ldl -lsocket -lm
|
ldflags=-ldl -lsocket -lm
|
||||||
|
Loading…
Reference in New Issue
Block a user