Initial commit
This commit is contained in:
@@ -50,3 +50,5 @@ modules.order
|
||||
Module.symvers
|
||||
Mkfile.old
|
||||
dkms.conf
|
||||
|
||||
bin
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
.PHONY: all clean
|
||||
|
||||
CC = qcc # ntox86-gcc
|
||||
CXX = g++
|
||||
LFLAGS = -Wall #-Vgcc_ntox86
|
||||
LIBS = #-l socket
|
||||
|
||||
BIN_PATH = ./bin
|
||||
SOURCE_PATH = ./src
|
||||
|
||||
TARGET = $(BIN_PATH)/pcirw
|
||||
|
||||
SRCS = $(SOURCE_PATH)/main.c
|
||||
|
||||
all:
|
||||
mkdir -p $(BIN_PATH)
|
||||
$(CXX) $(LFLAGS) -o $(TARGET) $(SRCS) $(LIBS)
|
||||
|
||||
$(BIN_PATH):
|
||||
mkdir -p $(BIN_PATH)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
# pcirw
|
||||
QNX6 program for work with PCI devices
|
||||
It uses for
|
||||
- reading PCI configuration space
|
||||
- writing PCI configuration space
|
||||
- reading PCI devices
|
||||
- writing PCI devices
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
puts("Hallo, Welt!");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user