Add tests for flags with assembly sources
This commit is contained in:
parent
d59dbdf1b4
commit
6681aa2e21
@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp
|
|||||||
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
|
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
|
||||||
|
|
||||||
$(OBJDIR)test4.o: test4.asm
|
$(OBJDIR)test4.o: test4.asm
|
||||||
$(AS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.asm
|
$(AS) $(test4_ASFLAGS) -m32 -o $(OBJDIR)test4.o test4.asm
|
||||||
|
|
||||||
$(OBJDIR)test4.o: test4.S
|
$(OBJDIR)test4.o: test4.S
|
||||||
$(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
|
$(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)
|
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)
|
||||||
|
@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp
|
|||||||
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
|
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
|
||||||
|
|
||||||
$(OBJDIR)test4.o: test4.asm
|
$(OBJDIR)test4.o: test4.asm
|
||||||
$(AS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.asm
|
$(AS) $(test4_ASFLAGS) -m32 -o $(OBJDIR)test4.o test4.asm
|
||||||
|
|
||||||
$(OBJDIR)test4.o: test4.S
|
$(OBJDIR)test4.o: test4.S
|
||||||
$(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
|
$(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)
|
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)
|
||||||
|
@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp
|
|||||||
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
|
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
|
||||||
|
|
||||||
$(OBJDIR)test4.o: test4.asm
|
$(OBJDIR)test4.o: test4.asm
|
||||||
$(AS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.asm
|
$(AS) $(test4_ASFLAGS) -m32 -o $(OBJDIR)test4.o test4.asm
|
||||||
|
|
||||||
$(OBJDIR)test4.o: test4.S
|
$(OBJDIR)test4.o: test4.S
|
||||||
$(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
|
$(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)
|
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)
|
||||||
|
@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp
|
|||||||
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
|
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
|
||||||
|
|
||||||
$(OBJDIR)test4.o: test4.asm
|
$(OBJDIR)test4.o: test4.asm
|
||||||
$(AS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.asm
|
$(AS) $(test4_ASFLAGS) -m32 -o $(OBJDIR)test4.o test4.asm
|
||||||
|
|
||||||
$(OBJDIR)test4.o: test4.S
|
$(OBJDIR)test4.o: test4.S
|
||||||
$(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
|
$(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)
|
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)
|
||||||
|
@ -19,3 +19,9 @@ ldflags=-ldl -lsocket -lm
|
|||||||
[test4]
|
[test4]
|
||||||
type=binary
|
type=binary
|
||||||
sources=test4.asm,test4.S
|
sources=test4.asm,test4.S
|
||||||
|
|
||||||
|
[test4.asm]
|
||||||
|
asflags=-m32
|
||||||
|
|
||||||
|
[test4.S]
|
||||||
|
cppflags=-nostdinc
|
||||||
|
Loading…
Reference in New Issue
Block a user