Make now builds graph and sine examples
This commit is contained in:
parent
6eb51ef641
commit
883361111c
1 changed files with 8 additions and 0 deletions
8
Makefile
8
Makefile
|
|
@ -24,6 +24,14 @@ $(BIN)/pw-test: $(call mklib, main.c)
|
|||
$(CCOMPILER) $(CFLAGS) -o $(BUILD)/pw-test.o -c $^
|
||||
$(CLINKER) $(LDFLAGS) -o $@ $(BUILD)/pw-test.o
|
||||
|
||||
$(BIN)/graph: $(call mklib, graph.c)
|
||||
$(CCOMPILER) $(CFLAGS) -o $(BUILD)/graph.o -c $^
|
||||
$(CLINKER) $(LDFLAGS) -lncurses -o $@ $(BUILD)/graph.o
|
||||
|
||||
$(BIN)/sine: $(call mklib, sine.c)
|
||||
$(CCOMPILER) $(CFLAGS) -o $(BUILD)/sine.o -c $^
|
||||
$(CLINKER) $(LDFLAGS) -lncurses -o $@ $(BUILD)/sine.o
|
||||
|
||||
$(BUILD) $(BIN):
|
||||
mkdir -p $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue