Made the queuemaintest a multithreading example, because why not.

This commit is contained in:
Pietro Gagliardi 2016-05-12 12:50:05 -04:00
parent f5549a19bf
commit 897674d20f
3 changed files with 7 additions and 1 deletions

View File

@ -64,6 +64,7 @@ example: libui
examples: examples:
@$(MAKE) -f GNUmakefile example EXAMPLE=controlgallery @$(MAKE) -f GNUmakefile example EXAMPLE=controlgallery
@$(MAKE) -f GNUmakefile example EXAMPLE=histogram @$(MAKE) -f GNUmakefile example EXAMPLE=histogram
@$(MAKE) -f GNUmakefile example EXAMPLE=cpp-multithread
.PHONY: examples .PHONY: examples

View File

@ -9,8 +9,13 @@ endif
include $(OS)/GNUosspecific.mk include $(OS)/GNUosspecific.mk
ifneq ($(findstring cpp-,$(EXAMPLE)),)
CXXFILES += \
examples/$(EXAMPLE)/main.cpp
else
CFILES += \ CFILES += \
examples/$(EXAMPLE)/main.c examples/$(EXAMPLE)/main.c
endif
HFILES += \ HFILES += \
ui.h ui.h

View File

@ -6,7 +6,7 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include "../ui.h" #include "../../ui.h"
using namespace std; using namespace std;
uiMultilineEntry *e; uiMultilineEntry *e;