fixed up toolchain and build options
This commit is contained in:
parent
354e9f0027
commit
d0a049d994
|
|
@ -6,9 +6,10 @@
|
|||
"configurations": [
|
||||
{
|
||||
"name": "colorwrap",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/bin/cterm",
|
||||
"args": ["cterm", "/bin/sh"],
|
||||
"args": ["/bin/sh"],
|
||||
"cwd": "${workspaceFolder}/"
|
||||
}]
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"makefile.launchConfigurations": [
|
||||
{
|
||||
"cwd": "/home/icaema/Documents/tools/colorwrap/bin",
|
||||
"binaryPath": "/home/icaema/Documents/tools/colorwrap/bin/cterm",
|
||||
"binaryArgs": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,5 +1,20 @@
|
|||
{
|
||||
"tasks": [
|
||||
{
|
||||
"type": "cppbuild",
|
||||
"label": "Make Build",
|
||||
"command": "make",
|
||||
"args": [
|
||||
"--directory=${workspaceFolder}"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "cppbuild",
|
||||
"label": "C/C++: gcc build active file",
|
||||
|
|
@ -19,7 +34,7 @@
|
|||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
"isDefault": false
|
||||
},
|
||||
"detail": "Task generated by Debugger."
|
||||
}
|
||||
|
|
|
|||
11
Makefile
11
Makefile
|
|
@ -5,7 +5,7 @@ TARGET := bin/cterm
|
|||
SRCEXT := c
|
||||
SOURCES := $(shell find $(SRCDIR) -type f -name *.$(SRCEXT))
|
||||
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o))
|
||||
CFLAGS :=
|
||||
CFLAGS := -Wall
|
||||
LIB := -L lib
|
||||
INC := -I include
|
||||
|
||||
|
|
@ -22,12 +22,7 @@ clean:
|
|||
@echo " Cleaning...";
|
||||
@echo " $(RM) -r $(BUILDDIR) $(TARGET)"; $(RM) -r $(BUILDDIR) $(TARGET)
|
||||
|
||||
# Tests
|
||||
tester:
|
||||
$(CC) $(CFLAGS) test/tester.cpp $(INC) $(LIB) -o bin/tester
|
||||
|
||||
# Spikes
|
||||
ticket:
|
||||
$(CC) $(CFLAGS) spikes/ticket.cpp $(INC) $(LIB) -o bin/ticket
|
||||
test:
|
||||
$(TARGET) /bin/shxi
|
||||
|
||||
.PHONY: clean
|
||||
|
|
|
|||
|
|
@ -25,10 +25,6 @@ void child_process(char *argv[]){
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int master;
|
||||
pid_t child_pid;
|
||||
|
|
|
|||
Loading…
Reference in New Issue