Initial commit of Pollcat library
This commit is contained in:
43
example/Makefile
Normal file
43
example/Makefile
Normal file
@@ -0,0 +1,43 @@
|
||||
# Example Makefile
|
||||
#
|
||||
# This file is part of the Pollcat Library.
|
||||
# Copyright (C) 2022 Expatria Technologies Inc.
|
||||
# Contact: Morgan Hughes <morgan@expatria.ca>
|
||||
#
|
||||
# The Pollcat Library is free software: you can redistribute it and/or modify it under the
|
||||
# terms of the the GNU Lesser General Public License as published by the Free Software
|
||||
# Foundation; either version 3 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received copies of the GNU General Public License and the GNU Lesser
|
||||
# General Public License along with the Pollcat Library. If not, see
|
||||
# https://www.gnu.org/licenses/
|
||||
#
|
||||
# vim:ts=4:noexpandtab
|
||||
|
||||
TERM_OBJS := tty.o main.o serial.o command.o
|
||||
TERM_LIBS := -lpollcat
|
||||
|
||||
.PHONY: all install clean
|
||||
|
||||
all: terminal
|
||||
|
||||
terminal: $(TERM_OBJS)
|
||||
$(CC) $(CFLAGS) $(LFLAGS) $^ $(TERM_LIBS) -o $@
|
||||
|
||||
install:
|
||||
false
|
||||
|
||||
clean:
|
||||
rm -f $(TERM_OBJS)
|
||||
rm -f terminal
|
||||
|
||||
%.i: %.c
|
||||
$(CC) $(CFLAGS) -E $< -o $@
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
Reference in New Issue
Block a user