Add tests for flags with assembly sources

This commit is contained in:
Pierre Pronchery 2018-03-20 03:03:58 +01:00
parent d59dbdf1b4
commit 6681aa2e21
5 changed files with 14 additions and 8 deletions

View File

@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
$(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
$(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
$(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
clean:
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)

View File

@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
$(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
$(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
$(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
clean:
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)

View File

@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
$(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
$(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
$(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
clean:
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)

View File

@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp
$(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp
$(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
$(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
$(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S
clean:
$(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS)

View File

@ -19,3 +19,9 @@ ldflags=-ldl -lsocket -lm
[test4]
type=binary
sources=test4.asm,test4.S
[test4.asm]
asflags=-m32
[test4.S]
cppflags=-nostdinc