-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (27 loc) · 603 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
CFLAGS =
LDFLAGS = /usr/lib64/librpm.so.1
TARGET = rpmvercmp
OFILES = rpmvercmp.o
$(TARGET): $(OFILES)
*.o:
clean:
rm -f *.o
check: $(TARGET)
test x"`./$(TARGET) 1 2`" = x"-1"
test x"`./$(TARGET) 1 1`" = x"0"
test x"`./$(TARGET) 2 1`" = x"1"
./$(TARGET) 1 1 '='
! ./$(TARGET) 1 1 '<'
./$(TARGET) 1 1 '<='
! ./$(TARGET) 1 1 '>'
./$(TARGET) 1 1 '>='
! ./$(TARGET) 2 1 '='
! ./$(TARGET) 2 1 '<'
! ./$(TARGET) 2 1 '<='
./$(TARGET) 2 1 '>'
./$(TARGET) 2 1 '>='
! ./$(TARGET) 1 2 '='
./$(TARGET) 1 2 '<'
./$(TARGET) 1 2 '<='
! ./$(TARGET) 1 2 '>'
! ./$(TARGET) 1 2 '>='